mirror of
https://github.com/boostorg/static_assert.git
synced 2026-01-19 16:52:11 +00:00
Compare commits
23 Commits
svn-branch
...
boost-1.53
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
689f524959 | ||
|
|
5233df9b9e | ||
|
|
7d9fdaee13 | ||
|
|
06dedcd232 | ||
|
|
6f1d2476fa | ||
|
|
e27a27c9f3 | ||
|
|
12f96b5653 | ||
|
|
23d7abde22 | ||
|
|
9e4d6dfeff | ||
|
|
2637358ba9 | ||
|
|
9e411076c6 | ||
|
|
3488b2bdf2 | ||
|
|
28e09a3cca | ||
|
|
481c2efbac | ||
|
|
3b702727b9 | ||
|
|
f298ed51a9 | ||
|
|
851fd2622e | ||
|
|
720fb456d5 | ||
|
|
2fa11699bf | ||
|
|
69dbf6f12d | ||
|
|
66dd3d2595 | ||
|
|
7a0a3fbf32 | ||
|
|
c5de8ff789 |
@@ -36,7 +36,7 @@ the static assertion will be evaluated at the time the template is instantiated;
|
||||
this is particularly useful for validating template parameters.
|
||||
|
||||
If the C++0x `static_assert` feature is available, both macros will use it.
|
||||
For `BOOST_STATIC_ASSERT(x)`, the error message with be a stringized version of `x`.
|
||||
For `BOOST_STATIC_ASSERT(x)`, the error message will be a stringized version of `x`.
|
||||
For `BOOST_STATIC_ASSERT_MSG(x, msg)`, the error message will be the `msg` string.
|
||||
|
||||
If the C++0x `static_assert` feature is not available, `BOOST_STATIC_ASSERT_MSG(x, msg)`
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#ifndef BOOST_NO_STATIC_ASSERT
|
||||
#ifndef BOOST_NO_CXX11_STATIC_ASSERT
|
||||
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) static_assert(B, Msg)
|
||||
#else
|
||||
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
|
||||
@@ -44,7 +44,7 @@
|
||||
# define BOOST_STATIC_ASSERT_BOOL_CAST(x) (bool)(x)
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_NO_STATIC_ASSERT
|
||||
#ifndef BOOST_NO_CXX11_STATIC_ASSERT
|
||||
# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B)
|
||||
#else
|
||||
|
||||
@@ -131,7 +131,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 // defined(BOOST_NO_STATIC_ASSERT)
|
||||
#endif // defined(BOOST_NO_CXX11_STATIC_ASSERT)
|
||||
|
||||
#endif // BOOST_STATIC_ASSERT_HPP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user