Boost logo

Boost :

Subject: Re: [boost] C++11 decltype/SFINAE puzzler
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2012-07-06 16:17:16


> Use g++.
>
> template<class T> auto h(T x)->decltype(x.smurf()){return x.smurf();}
> template<class T> auto g(T x)->decltype(h(x)){return h(x);}
> template<class T> auto f(T x)->decltype(g(x)){return g(x);}

Apparently I should have updated Gmail before hitting send. Looks very
familiar :)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk