From: Ryan Mast Date: Sat, 1 Jul 2017 23:08:17 +0000 (-0700) Subject: Add const to newver_t operator() X-Git-Tag: 1.0~39^2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa60d948dfe4ba4105853109b8bd81a2214b7e40;p=re2c Add const to newver_t operator() A certain set of compilers gives a compiler error due to losing "const-volatile qualifiers" --- 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;