C++ Logo

std-proposals

Advanced search

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

From: Peter C++ <peter.cpp_at_[hidden]>
Date: Thu, 18 Aug 2022 07:50:50 +0200
Sent from Peter Sommerlad's iPad
+41 79 432 23 32

> On 18 Aug 2022, at 07:22, Florian Gavril via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> My motivation to propose this is that I spend a lot of time debugging issues on production builds (multiple projects) where some of the parameters were checked by using assert only.

you know, that you can redefine assert, because it is a macro. otoh, this is definitely a design weakness (and may be unit test weakness) that should be addressed locally, not by changing the standard. in the 1990s we let our unit tests compile and run, both in debug and in release mode.

Received on 2022-08-18 05:50:53