Filing this chiefly for the record. cppreference states that since C++14:
Optional single quotes(') may be inserted between the digits as a separator. They are ignored by the compiler.
I verified this is true in gcc. At this time Wave does not understand them. For example:
#include <iostream>
// can insert single quotes between digits starting in C++14:
int foo = 1'2'3; // wave thinks this is two ints and one char literal
int bar = 0x2'3; // wave thinks this is two ints and a single quote
int main() {
std::cout << foo << "\n"; // 123
std::cout << bar << "\n"; // 35
return 0;
}
I don't need this functionality but wanted to record it for some future maintainer.
The lexers won't be too hard, as they seem to treat everything as a string. The grammars that use them, on the other hand, may need some work - like here, where a Spirit integer parser is invoked.
Filing this chiefly for the record. cppreference states that since C++14:
I verified this is true in gcc. At this time Wave does not understand them. For example:
I don't need this functionality but wanted to record it for some future maintainer.