compile-time-type-checking Questions
1
Solved
The cppref page on std::format says:
It is not an error to provide more arguments than the format string requires:
// OK, produces "Hello world!"
std::format("{} {}!", "H...
Buckeye asked 1/2 at 9:58
2
Solved
I want to design a compile-time-string class CTString that can e.g. be constructed from a parameter pack of string literals. This works using a comma-fold-expression (for this toy example, I tried ...
Louque asked 17/4, 2023 at 10:40
1
Solved
In Go 1.18 and Go 1.19 I can ensure at compile time that a type is strictly comparable, i.e. it supports == and != operators and those are guaranteed to not panic at run time.
This is useful for ex...
Kiaochow asked 14/12, 2022 at 20:32
1
© 2022 - 2024 — McMap. All rights reserved.