Date: Fri, 17 Apr 2026 12:35:13 +0200
On 17/04/2026 11:19, Jonathan Wakely via Std-Proposals wrote:
>
>
> On Thu, 16 Apr 2026 at 21:08, Adrian via Std-Proposals <std-
> proposals_at_[hidden] <mailto:std-proposals_at_[hidden]>> wrote:
>
> __
>
> I am not a big fan of static_assert and to my understanding the c++
> community has started to make a push away from it.
>
>
> This is news to me.
>
And to me. Static assertions are a great idea - they express things you
used to write in comments, but now you have them in code and checked by
tools with zero run-time cost.
But there are perhaps situations where previously (pre C++20) you might
have used general templates and then a static_assert to cause
compile-time failures if some property is not satisfied, and now you
would prefer to use a concept. That may be what the OP meant here.
>
>
> On Thu, 16 Apr 2026 at 21:08, Adrian via Std-Proposals <std-
> proposals_at_[hidden] <mailto:std-proposals_at_[hidden]>> wrote:
>
> __
>
> I am not a big fan of static_assert and to my understanding the c++
> community has started to make a push away from it.
>
>
> This is news to me.
>
And to me. Static assertions are a great idea - they express things you
used to write in comments, but now you have them in code and checked by
tools with zero run-time cost.
But there are perhaps situations where previously (pre C++20) you might
have used general templates and then a static_assert to cause
compile-time failures if some property is not satisfied, and now you
would prefer to use a concept. That may be what the OP meant here.
Received on 2026-04-17 10:35:19
