Re:Just how constexpr is C++20’s std:string?
by mostlylurks on Friday September 08, 2023 @04:19PM
(#37438883)
You can also do the same with templates quite easily, but the resulting compile times are going to be absolutely atrocious.
Re:Just how constexpr is C++20’s std:string?
by fooker on Friday September 08, 2023 @05:26PM
(#37439654)
A bunch of constexpr stuff since C++14 onwards have been added just to make meta-programming more usable.
Users, library writers, and compiler writers all benefit from this in some way.
You are pretty much limited to macros and macro-like languages (llvm-tablegen) if you want to do this today.