|
Boost : |
Subject: Re: [boost] detecting a constructor with a specific signature
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-01-27 12:59:08
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk