X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/771dc643242bf582944be05d2d3566aac21887d5..6ee95cd0d900362be987c3910d634e20460d7ad0:/data/location.cc diff --git a/data/location.cc b/data/location.cc index b7383d65..49f5f349 100644 --- a/data/location.cc +++ b/data/location.cc @@ -30,7 +30,7 @@ b4_copyright([Positions for Bison parsers in C++], ]b4_cpp_guard_open([b4_dir_prefix[]position.hh])[ # include // std::max -# include +# include # include ]b4_null_define[ @@ -87,7 +87,7 @@ b4_copyright([Positions for Bison parsers in C++], }; /// Add and assign a position. - inline const position& + inline position& operator+= (position& res, const int width) { res.columns (width); @@ -103,7 +103,7 @@ b4_copyright([Positions for Bison parsers in C++], } /// Add and assign a position. - inline const position& + inline position& operator-= (position& res, const int width) { return res += -width; @@ -159,8 +159,6 @@ b4_copyright([Locations for Bison parsers in C++], ]b4_cpp_guard_open([b4_dir_prefix[]location.hh])[ -# include -# include # include "position.hh" ]b4_namespace_open[