Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-08 09:44:18


The only reason for test_function_tricky.cpp to not compile with
boost::function is the presence of the following two lines:

BOOST_STATIC_ASSERT((::boost::is_base_and_derived<std::unary_function<int,
long>, std::tr1::function<long (int)> >::value));

BOOST_STATIC_ASSERT((::boost::is_base_and_derived<std::binary_function<int,
char, double>, std::tr1::function<double (int,char)> >::value));

that check for the (highly questionable and not particularly relevant)
requrement that function<> should derive from unary_function or
binary_function in some cases.

I think that these two lines need to be moved to a separate test.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk