Boost logo

Boost :

Subject: Re: [boost] enabling constexpr with Visual studio 2015 Update 3 (RC)
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2016-06-23 15:11:02


On 23 Jun 2016 at 17:56, Billy O'Neal (VC LIBS) wrote:

> Extended constexpr was a C++14 feature. /std:c++14 and /std:c++latest
> don't turn this on because C1XX does not have support for it. We
> implement only C++11 constexpr at this time, which means constexpr
> functions must be of the form "return expression;".

I believe typedef/using expressions are permitted before the return
statement. You can also, of course, throw exceptions instead of
returning in C++ 11.

BTW been making heavy use of variable templates in Update 2, apart
from all the ICEs it's a great clutter remover.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



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