Boost logo

Boost Users :

From: Agoston Bejo (gusz1_at_[hidden])
Date: 2004-06-12 16:20:07

I understand that by using enable_if the following way:

template <class T>
T foo(T t, typename enable_if<boost::is_arithmetic<T> >::type* dummy = 0);

I can include/exclude the appropriate function overloads.
When I write:

template<class T>
T foo(T t, typename enable_if<[condition1]>::type* dummy = 0,
typename enable_if<[condition2]>::type* dummy = 0);

Does this mean an AND-relationship between condition1 and condition2? (So
that a particular overload is enabled if and only if both conditions
evaluate to true?)


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at