7 Jul
2009
7 Jul
'09
9:40 p.m.
Hicham Mouline wrote:
#include
struct S { static const size_t maxsize =5; };
struct T { };
BOOST_HAS_MEMBER_DATA(S, maxsize) BOOST_HAS_MEMBER_DATA(T, maxsize)
It's not BOOST_HAS_MEMBER_DATA you need, but BOOST_HAS_STATIC_MEMBER_NAMED. Indeed, BOOST_HAS_MEMBER_DATA is for non-static members.