Re:New C++ features in GCC 12
by StephanTLavavej on Sunday May 01, 2022 @07:24PM
(#31229718)
Here’s what we do in MSVC’s STL:
This lets us run all test cases at both runtime and compiletime. (The static_assert performs constant evaluation, and if an assert within test_is_even would fail, it won’t be a constant expression.)
[ Parent
| on HN ]
Re:New C++ features in GCC 12
by arcticbull on Sunday May 01, 2022 @08:11PM
(#31230006)
That's very cool, thank you for sharing!