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...

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 ...

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.