diff options
-rw-r--r-- | src/tuplr.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tuplr.hpp b/src/tuplr.hpp index 787355b..7d0bb6a 100644 --- a/src/tuplr.hpp +++ b/src/tuplr.hpp @@ -59,8 +59,8 @@ struct Cursor { struct Error { Error(Cursor c, const string& m) : loc(c), msg(m) {} const string what() const { return (loc ? loc.str() + ": " : "") + "error: " + msg; } - Cursor loc; - string msg; + const Cursor loc; + const string msg; }; /// Generic Lexical Environment |