You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#define BOOST_PP_LIMIT_VARIADIC 256
#include <boost/preprocessor/variadic/size.hpp>
#include <cstddef>
#define VAR_DATA a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, b, b, b, b, b
constexpr size_t sz = BOOST_PP_VARIADIC_SIZE(VAR_DATA);
static_assert(sz == 65);
gives:
<source>(9): error C2065: 'b': undeclared identifier
<source>(9): error C2131: expression did not evaluate to a constant
<source>(9): note: a non-constant (sub-)expression was encountered
<source>(11): error C2131: expression did not evaluate to a constant
<source>(9): note: a non-constant (sub-)expression was encountered
gives:
compare: https://godbolt.org/z/bfoETMnad
The text was updated successfully, but these errors were encountered: