mirror of
https://github.com/boostorg/static_assert.git
synced 2025-07-15 13:46:35 +02:00
Compare commits
3 Commits
boost-1.54
...
boost-1.55
Author | SHA1 | Date | |
---|---|---|---|
d9b5006a7f | |||
f2b7643595 | |||
bc29f7ab62 |
@ -30,7 +30,7 @@
|
||||
# ifndef BOOST_NO_CXX11_VARIADIC_MACROS
|
||||
# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)
|
||||
# else
|
||||
# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)
|
||||
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
|
||||
# endif
|
||||
#else
|
||||
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
|
||||
@ -183,6 +183,7 @@ template<int x> struct static_assert_test{};
|
||||
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
|
||||
= sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( __VA_ARGS__ ) >) }
|
||||
# else
|
||||
# define BOOST_STATIC_ASSERT(B) \
|
||||
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
|
||||
= sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) }
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user