From fa60d948dfe4ba4105853109b8bd81a2214b7e40 Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Sat, 1 Jul 2017 16:08:17 -0700 Subject: [PATCH] Add const to newver_t operator() A certain set of compilers gives a compiler error due to losing "const-volatile qualifiers" --- re2c/src/dfa/closure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/src/dfa/closure.h b/re2c/src/dfa/closure.h index f93e29d5..cd8e1278 100644 --- a/re2c/src/dfa/closure.h +++ b/re2c/src/dfa/closure.h @@ -38,7 +38,7 @@ struct newver_t struct newver_cmp_t { tagtree_t &history; - bool operator()(const newver_t &x, const newver_t &y) + bool operator()(const newver_t &x, const newver_t &y) const { if (x.tag < y.tag) return true; if (x.tag > y.tag) return false; -- 2.40.0