@be i vaguely recall playing with a GCC extension in some homework at uni that allows you to make a template <typename Char, Char... Xs> operator""_
and takes the characters of the literal for you to metaprogram with. (for reasons, i implemented a recursive descent parser as a template metaprogram that makes the type of the string literal vary based on the contents of the literal )
my homework had -Wgnu-string-literal-operator-template
in it to compile with clang++
, but I can’t find anything about that in current docs
hopefully, the lack of docs means that this extension never got standardized
- replies
- 1
- announces
- 0
- likes
- 4