diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2015-01-19 18:24:24 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2015-01-20 18:04:24 +0100 |
commit | eaa476a7e9316b0a5cb5d35467865f2ae2ef9a37 (patch) | |
tree | dbbfda715c0d54f588108ee532b3256ab1dfdd19 | |
parent | 16832bf546d0d846081ef193e56931b1ebe7e4ab (diff) | |
download | bison-eaa476a7e9316b0a5cb5d35467865f2ae2ef9a37.tar.gz |
tests: fix C++ conformance
Reported by Thomas Jahns.
http://lists.gnu.org/archive/html/bug-bison/2015-01/msg00059.html
* tests/c++.at (Exception safety): Add missing include.
Don't use const_iterator for erase.
-rw-r--r-- | tests/c++.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/c++.at b/tests/c++.at index 737037d3..062e5f08 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -719,6 +719,7 @@ $1 #include <cstdlib> // size_t and getenv. #include <iostream> #include <set> + #include <string> bool debug = false; @@ -751,7 +752,7 @@ $1 ~Object () { log (this, "Object::~Object"); - objects::const_iterator i = instances.find (this); + objects::iterator i = instances.find (this); // Make sure this object is alive. assert (i != instances.end ()); Object::instances.erase (i); |