Compare commits

..

6 Commits

Author SHA1 Message Date
b9483200ca Created a branch from trunk
[SVN r38959]
2007-08-26 05:34:35 +00:00
1663a635aa Fix C++0x helper macros
[SVN r37178]
2007-03-14 09:20:38 +00:00
b9a3b24aef remove dead file.
[SVN r36552]
2006-12-31 17:27:27 +00:00
a0dac351fb Preliminary C++0x support
[SVN r36149]
2006-11-22 15:58:39 +00:00
c68b2114de Added trivial docs change, based on user suggestion, and brought example code into synch.
[SVN r34874]
2006-08-11 18:14:13 +00:00
48b6934f7f Added license info.
[SVN r34585]
2006-07-17 10:49:22 +00:00
2 changed files with 5 additions and 6 deletions

View File

@ -17,10 +17,6 @@
[section:intro Overview and Tutorial]
This documentation is
[@http://boost-consulting.com/vault/index.php?action=downloadfile&filename=boost_static_assert-1.34.pdf&directory=PDF%20Documentation&
also available in printer-friendly PDF format].
The header `<boost/static_assert.hpp>` supplies a single macro `BOOST_STATIC_ASSERT(x)`,
which generates a compile time error message if the integral-constant-expression `x`
is not true. In other words it is the compile time equivalent of the assert macro;
@ -223,4 +219,3 @@ working at namespace, function, and class scope outweighed the ugliness of a mac
[endsect]

View File

@ -28,6 +28,10 @@
# define BOOST_SA_GCC_WORKAROUND
#endif
#ifdef BOOST_HAS_STATIC_ASSERT
# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B)
#else
namespace boost{
// HP aCC cannot deal with missing names for template value parameters
@ -111,7 +115,7 @@ template<int x> struct static_assert_test{};
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
= sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) }
#endif
#endif // ndef BOOST_HAS_STATIC_ASSERT
#endif // BOOST_STATIC_ASSERT_HPP