C++14 allows more cases where a function
can be declared constexpr. This includes any function satisfies the following
criteria:
criteria:
- It contains only variable declarations not declared static nor thread_local.
- It contains no variable declarations without initializers.
The function can change the values of
objects, as long as those object is during the execution of the function.
No comments:
Post a Comment