C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Allow assert in constexpr functions

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Wed, 26 Mar 2025 18:04:55 +0000
On Wed, 26 Mar 2025 at 16:06, Jeremy Rifkin via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Is this relevant anymore given contracts?
>

I would say yes, because assert is still part of the language.

But all that really matters is that it's been required to work in constexpr
since C++17, thanks to https://cplusplus.github.io/LWG/issue2234

https://eel.is/c++draft/assertions#assert-5

Received on 2025-03-26 18:05:13