[MPL] how do i validate a predicate template?
15 Nov
2005
15 Nov
'05
2:48 a.m.
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
));
-- Cory Nelson http://www.int64.org
16 Nov
16 Nov
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
6952
Age (days ago)
6953
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cory Nelson
-
David Abrahams