23 Jun
2016
23 Jun
'16
7:11 p.m.
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/