On Apr 29, 2026, Jonathan Wakely <[email protected]> wrote:

> That's what my suggestion did, i.e. the 'else' was load-bearing.

Aah, I didn't realize that the 'else' made a difference indeed.
I'd never been formally introduced to if constexpr, I only had an
intuitive grasp, that has now proved insufficient :-/

> https://en.cppreference.com/cpp/language/if#Constexpr_if

Thanks for the pointer.  Evidently I've still got some catching-up to do
with current C++ :-)

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to