public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Minor inline tweak to stl_tree.h
@ 2010-06-23 10:15 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2010-06-23 10:15 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 94 bytes --]

Hi,

noticed while working on something else. Committed to mainline.

Paolo.

///////////////

[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 149 bytes --]

2010-06-23  Paolo Carlini <paolo.carlini@oracle.com>

	* include/bits/stl_tree.h (erase(iterator), erase(const_iterator)):
	Remove inline specifier.

[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 1106 bytes --]

Index: include/bits/stl_tree.h
===================================================================
--- include/bits/stl_tree.h	(revision 161240)
+++ include/bits/stl_tree.h	(working copy)
@@ -1358,7 +1358,7 @@
   // DR 130. Associative erase should return an iterator.
   template<typename _Key, typename _Val, typename _KeyOfValue,
            typename _Compare, typename _Alloc>
-    inline typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
+    typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
     _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
     erase(iterator __position)
     {
@@ -1377,7 +1377,7 @@
   // DR 130. Associative erase should return an iterator.
   template<typename _Key, typename _Val, typename _KeyOfValue,
            typename _Compare, typename _Alloc>
-    inline typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator
+    typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator
     _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
     erase(const_iterator __position)
     {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-23  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-23 10:15 [v3] Minor inline tweak to stl_tree.h Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).