
13 Sep
2007
13 Sep
'07
10:11 a.m.
Joaquín Mª López Muñoz wrote:
If you only want the predicate for displaying purposes, maybe you can use something like this:
template<typename T,std::size_t Size> struct is_complete:boost::mpl::bool_<Size>{};
BOOST_MPL_ASSERT((is_complete<foo,sizeof(foo)>));
No that doesn't do it: you never get as far as the MPL error messages 'cos the sizeof(foo) fails to compile (this is what I'm using already to generate an error BTW). John.