mirror of
https://github.com/boostorg/static_assert.git
synced 2025-06-27 21:11:01 +02:00
Compare commits
1 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
7f6ac57a91 |
@ -38,7 +38,7 @@
|
|||||||
# define BOOST_STATIC_ASSERT_BOOL_CAST(x) (bool)(x)
|
# define BOOST_STATIC_ASSERT_BOOL_CAST(x) (bool)(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BOOST_NO_STATIC_ASSERT
|
#ifdef BOOST_HAS_STATIC_ASSERT
|
||||||
# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B)
|
# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ template<int x> struct static_assert_test{};
|
|||||||
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
|
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
|
||||||
= sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) }
|
= sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) }
|
||||||
#endif
|
#endif
|
||||||
#endif // defined(BOOST_NO_STATIC_ASSERT)
|
#endif // ndef BOOST_HAS_STATIC_ASSERT
|
||||||
|
|
||||||
#endif // BOOST_STATIC_ASSERT_HPP
|
#endif // BOOST_STATIC_ASSERT_HPP
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user