Compile-time function execution: Difference between revisions

Content deleted Content added
c++11 version is not as powerful. added missing hyphens, removed incorrect hyphens.
Enamex (talk | contribs)
Added a bit about C++14 constexpr. Needs editing to be more concise.
Line 62:
</source>
 
In [[C++11]], a similar (less powerful) technique is known as [[C++11#constexpr – Generalized constant expressions|generalized constant expressions(<code>constexpr</code>)]]. [[C++14]] [[C++14#Relaxed_constexpr_restrictions|relaxes the constraints]] on constexpr – allowing local declarations and use of conditionals and loops (the general restriction that all data required for the execution be available at compile-time remains).
 
==References==