* include/bits/basic_string.h (getline): Declare inline.
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2014 15:48:23 +0000 (15:48 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2014 15:48:23 +0000 (15:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213873 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h

index 1e1e522..7b411f3 100644 (file)
@@ -7,6 +7,8 @@
        * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/12.cc:
        New.
 
+       * include/bits/basic_string.h (getline): Declare inline.
+
 2014-08-09  Ulrich Drepper  <drepper@gmail.com>
 
        * include/ext/random.tcc (uniform_on_sphere_helper): Define.
index 6a54d0c..93ceb6d 100644 (file)
@@ -2816,7 +2816,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 #if __cplusplus >= 201103L
   /// Read a line from an rvalue stream into a string.
   template<typename _CharT, typename _Traits, typename _Alloc>
-    basic_istream<_CharT, _Traits>&
+    inline basic_istream<_CharT, _Traits>&
     getline(basic_istream<_CharT, _Traits>&& __is,
            basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
     { return std::getline(__is, __str, __delim); }