|
Boost Users : |
From: Agoston Bejo (gusz1_at_[hidden])
Date: 2004-06-12 16:20:07
Hi,
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?)
Thx,
Gus
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net