Hello,
Would there be a way to use the MPL so that I could avoid
#define'ed macros for creating these functions?
The purpose of these functions is to ensure that the type
of 'value' is in line with the type as specified by the
string 'str'. For example, if 'value' is an int, then
'str' should be
Daniel Frey wrote:
Uhm... don't know about MPL, but isn't this a good example for
type_traits? Something like:
template
bool SetOption(COptionInfo& o, const char* key, const T& value)
{
BOOST_STATIC_ASSERT( boost::is_same< T, bool >::value ||
boost::is_same<
+ solution too.
Thanks,
Derek Ross.
___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost