Re: [PATCH 00/45] C++: Convert the kernel to C++
From: Neal Gompa
Date: Thu Jan 11 2024 - 05:59:54 EST
On Thu, Jan 11, 2024 at 5:56 AM Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
>
> > SFINAE giving inscrutable errors is why I'm saying C++20,
> > since "concept" means you can get usable error messages.
>
> I'd say concepts are irrelevant for the kernel where standard library is
> tightly controlled by the same people who write rest of the kernel and
> no external users.
>
> static_assert() is all you need.
We have external users all the time, though. People who write external
modules or new modules would fall in that classification. Why should
it be harder for them?
--
真実はいつも一つ!/ Always, there's only one truth!