16 Nov
2005
16 Nov
'05
6:44 p.m.
Cory Nelson
Is there any way to validate a predicate (function, functor etc) template with MPL?
ie, something like:
BOOST_MPL_ASSERT((and_< is_function<Predicate>, equal_to
>, is_same , is_same ));
I don't know what you mean by "validate," but your assertion above looks like reasonable code to me. -- Dave Abrahams Boost Consulting www.boost-consulting.com