mirror of
https://github.com/boostorg/static_assert.git
synced 2025-06-27 13:01:33 +02:00
Compare commits
6 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
b9483200ca | |||
1663a635aa | |||
b9a3b24aef | |||
a0dac351fb | |||
c68b2114de | |||
48b6934f7f |
@ -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]
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user