Boost logo

Boost :

Subject: Re: [boost] detecting a constructor with a specific signature
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2010-01-27 12:51:21

vicente.botet wrote:
> Hi,
> have you tried to double ()
> template< typename T >
> typename result< sizeof T(( make< const std::string& >(), make< Foo& >() )) >::type select( int );
> Vicente

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at