
12 Aug
2012
12 Aug
'12
10:14 p.m.
AMDG On 08/12/2012 11:15 AM, Niitsuma Hirotaka wrote:
<snip>
In this case, we need to define same thing two times. However if mpl::true_ have operator() as like
mpl::true_ { template<typename T> bool operator()(const T & dummy){return true;} };
We can remove one line using:
template<typename T> bool is_foo(const T& dummy){return is_foo_traits<T>::value;}
??? I don't see how you're using operator() and I really don't think it's a good idea to add such an arbitrary function, anyway. In Christ, Steven Watanabe