Boost logo

Boost :

Subject: Re: [boost] detecting a constructor with a specific signature
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-01-27 12:32:19


AMDG

vicente.botet wrote:
> "Kenny Riddile" <kfriddile_at_[hidden]> wrote:
>
>> Alas, I'm using VC9. The first declaration of select() gives me the
>> following error:
>>
>> error C2564: 'T' : a function-style conversion to a built-in type can
>> only take one argument
>>
>
> Hi,
>
> have you tried to double ()
>
> template< typename T >
> typename result< sizeof T(( make< const std::string& >(), make< Foo& >() )) >::type select( int );
>

That doesn't try the same constructor.

The problem is that this method requires extended SFINAE
which VC9 doesn't support.

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