summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-08-23 12:21:17 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-08-23 12:21:17 +0100
commit21bf6b2a938864cac3f973755f8a581e4134092d (patch)
tree2c6139bc37868a6358b3b930f69ae75b8e646bd1 /libstdc++-v3/include/debug
parent3eb1eda1c8a9e77cdea79e796a331f265b83e2df (diff)
downloadgcc-21bf6b2a938864cac3f973755f8a581e4134092d.tar.gz
Fix C++11-ism in C++98 member function
* include/debug/string (insert(__const_iterator, _InIter, _InIter)): [!_GLIBCXX_USE_CXX11_ABI]: Replace use of C++11-only cbegin() with begin(), for C++98 compatibility. From-SVN: r263809
Diffstat (limited to 'libstdc++-v3/include/debug')
-rw-r--r--libstdc++-v3/include/debug/string2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/debug/string b/libstdc++-v3/include/debug/string
index d330bfd5a3f..ca190fa6528 100644
--- a/libstdc++-v3/include/debug/string
+++ b/libstdc++-v3/include/debug/string
@@ -642,7 +642,7 @@ namespace __gnu_debug
else
__res = _Base::insert(__p.base(), __first, __last);
#else
- const size_type __offset = __p.base() - _Base::cbegin();
+ const size_type __offset = __p.base() - _Base::begin();
_Base::insert(__p.base(), __first, __last);
__res = _Base::begin() + __offset;
#endif