[cmake-developers] [PATCH] Macro generation for relaxed constexpr

Stephen Kelly steveire at gmail.com
Mon Aug 3 13:20:53 EDT 2015


Jean-Michaël Celerier wrote:

>> Qt 5 provides a macro for this context which expands to either 'const' or
> 'constexpr' depending on whether cxx_constexpr is available, and another
> macro which expands to either 'const' or 'constexpr' depending on whether
> cxx_relaxed_constexpr is available.
> 
> Thinking of it, since C++14 constexpr does not imply const anymore, so
> isn't this macro ambiguous wrt standard c++ ?
> 

The 'const' keyword can be used in multiple contexts. Can you clarify which 
you mean with a reference to some document?

Thanks,

Steve.




More information about the cmake-developers mailing list