|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2007-09-13 06:11:19
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk