boost_has_static_assert.ipp 541 B

1234567891011121314151617181920
  1. // Copyright (C) 2007 Douglas Gregor
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_STATIC_ASSERT
  7. // TITLE: static assertions
  8. // DESCRIPTION: The compiler supports C++0x static assertions
  9. namespace boost_has_static_assert {
  10. int test()
  11. {
  12. static_assert(true, "OK");
  13. return 0;
  14. }
  15. }