
27 Jan
2010
27 Jan
'10
5:59 p.m.
AMDG Kenny Riddile wrote:
vicente.botet wrote:
have you tried to double ()
template< typename T > typename result< sizeof T(( make< const std::string& >(), make< Foo&
() )) >::type select( int );
Ya, I thought of that right after posting and it does fix the compilation error. The issue I'm having now is that both
has_foo_ctor< Foo >::value has_foo_ctor< Bar >::value
are evaluating to true and I'm not sure why.
When you use double parentheses, it calls the comma operator and only passes a single argument to the constructor. In Christ, Steven Watanabe