Boost logo

Boost :

Subject: Re: [boost] [typeof] Weird VC++ compiler bug
From: Peter Dimov (lists_at_[hidden])
Date: 2015-05-27 10:18:07


Andrzej Krzemienski wrote:
> 2015-05-23 18:33 GMT+02:00 Steven Watanabe <watanabesj_at_[hidden]>:
>
> > AMDG
> >
> > On 05/23/2015 09:44 AM, Peter Dimov wrote:
> > >
> > > Why doesn't Typeof use decltype on VS 2013?
> > >
> >
> > Probably because Typeof hasn't had a maintainer since before decltype.
> > It doesn't appear to use decltype for any compiler.
>
>
> I don't think it can. The semantics of BOOST_TYPEOF is that of:
> auto x = expr;

It's not a problem to pass the result of decltype through decay<> or to use

    template<class T> T f( T );

    decltype(f(expr));


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