aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/libstdc++-v3/include/bits/stl_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/libstdc++-v3/include/bits/stl_tree.h')
-rw-r--r--gcc-4.6/libstdc++-v3/include/bits/stl_tree.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.6/libstdc++-v3/include/bits/stl_tree.h b/gcc-4.6/libstdc++-v3/include/bits/stl_tree.h
index 7567e20..a7e9564 100644
--- a/gcc-4.6/libstdc++-v3/include/bits/stl_tree.h
+++ b/gcc-4.6/libstdc++-v3/include/bits/stl_tree.h
@@ -800,6 +800,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_erase_aux(__position);
return __result._M_const_cast();
}
+
+ // LWG 2059.
+ iterator
+ erase(iterator __position)
+ {
+ iterator __result = __position;
+ ++__result;
+ _M_erase_aux(__position);
+ return __result;
+ }
#else
void
erase(iterator __position)