Boost logo

Boost :

Subject: [boost] BOOST_STATIC_ASSERT_MSG bug?
From: Peter Dimov (lists_at_[hidden])
Date: 2013-12-11 08:34:53


#ifndef BOOST_NO_CXX11_STATIC_ASSERT
# ifndef BOOST_NO_CXX11_VARIADIC_MACROS
# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)
# else
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
# endif
#else
# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B )
#endif

The second case looks wrong, we have static_assert in this case; should it
not be static_assert( B, Msg ) instead?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk