summaryrefslogtreecommitdiffstats
path: root/src/tools/qlalr/lalr.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-05-07 23:18:55 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-05-15 17:07:09 +0000
commit85278a69707ec85db28e9a1b11d708ab550592ce (patch)
treebd9535bcb8566915aaac2f0101650da499669b62 /src/tools/qlalr/lalr.cpp
parent2c93ff91bebaffec5d1adc6575521f0d4507fe8a (diff)
qlalr: fix build in C++17
std::unary_function and std::binary_function are gone. Remove their uses. Change-Id: I5d0ee9389a794d80983efffd152c96f0f2149b40 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/tools/qlalr/lalr.cpp')
-rw-r--r--src/tools/qlalr/lalr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp
index 00597d1379..ec960925aa 100644
--- a/src/tools/qlalr/lalr.cpp
+++ b/src/tools/qlalr/lalr.cpp
@@ -242,8 +242,9 @@ void Grammar::buildExtendedGrammar ()
non_terminals.insert (accept_symbol);
}
-struct Nullable: public std::unary_function<Name, bool>
+struct Nullable
{
+ typedef Name argument_type;
Automaton *_M_automaton;
Nullable (Automaton *aut):