$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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