C++ Logo


Advanced search

Re: [std-proposals] assert functionality on non-debug builds

From: Bjorn Reese <breese_at_[hidden]>
Date: Wed, 17 Aug 2022 18:20:03 +0200
On 8/17/22 16:52, Florian Gavril via Std-Proposals wrote:

> As everyone knows that, the assert macro is very useful to find out
> unexpected conditions on the development stage, but for the production
> builds, the NDEBUG is usually enabled and assert is actually disabled.

You may want to look into contracts: http://wg21.link/P0542

Received on 2022-08-17 16:20:05