Fix build errors w/ gcc

This commit is contained in:
Max Brunsfeld 2017-03-17 13:58:51 -07:00
parent 416cbb9def
commit d9fb863bea
5 changed files with 5 additions and 6 deletions

View file

@ -74,7 +74,6 @@ struct Rule {
template <typename FunctionType>
inline auto accept(FunctionType function) const -> decltype(function(blank)) {
switch (type) {
case BlankType: return function(blank);
case CharacterSetType: return function(character_set);
case StringType: return function(string);
case PatternType: return function(pattern);
@ -84,6 +83,7 @@ struct Rule {
case MetadataType: return function(metadata);
case RepeatType: return function(repeat);
case SeqType: return function(seq);
default: return function(blank);
}
}