Talk:cpp/error/assert
From cppreference.com
[edit] C++17 or C++14?
Eric Niebler writes that assert can be used in constexpr's starting with C++14. This page says the feature comes with C++17. What is correct?
- constexpr wording for assert was added in LWG2234 (with a quick follow-up fix-up in LWG2559) whose changelog notes that it was "standardizing existing practice", so I would guess it could be used in practice (in popular implementations), though C++14 did not guarantee it. --Cubbi (talk) 09:47, 16 January 2017 (PST)