mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-28 09:35:19 +00:00
Use C++20 concepts to require constraints on template parameters (#1977)
This commit is contained in:
@@ -95,6 +95,7 @@ static std::string readKeyword(int initial) {
|
||||
}
|
||||
|
||||
template<uint32_t Base>
|
||||
requires BaseV<Base>
|
||||
static yy::parser::symbol_type readNumber(int initial, char const *prefix, char const *name) {
|
||||
LexerStackEntry &context = lexerStack.back();
|
||||
uint32_t number;
|
||||
|
||||
Reference in New Issue
Block a user