Re: [patch] Overload std::getline for rvalue streams

2014-08-26 Thread Jonathan Wakely
On 12/08/14 16:20 +0100, Jonathan Wakely wrote: We're missing these overloads required by C++11. Tested x86_64-linux, committed to trunk. I think this should go on the branches too, any objections? Committed to the 4.9 branch.

Re: [patch] Overload std::getline for rvalue streams

2014-08-12 Thread Jonathan Wakely
am<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>&& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { return std::getline(__is, __str, __delim); }

[patch] Overload std::getline for rvalue streams

2014-08-12 Thread Jonathan Wakely
p; getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str) -{ return getline(__is, __str, __is.widen('\n')); } +{ return std::getline(__is, __str, __is.widen('\n')); } + +#if __cplusplus >= 201103L + /// Re

Re: std::getline

2013-05-15 Thread Jonathan Wakely
On 15 May 2013 09:23, Jonathan Wakely wrote: > On 15 May 2013 08:50, Jonathan Wakely wrote: >> Yes, it's wrong. I think the comment was copied from operator>> and >> not corrected. I'll fix it, thanks for reporting it. > > * include/bits/basic_string.h (getline): Fix doxygen comments. > >

Re: std::getline

2013-05-15 Thread Jonathan Wakely
On 15 May 2013 08:50, Jonathan Wakely wrote: > On 15 May 2013 06:57, ntysdd wrote: >> Hi, >> >> I found this in the file `include\bits\basic_string.h': >> /** >> * @brief Read a line from stream into a string. >> * @param __is Input stream. >> * @param __str Buffer to store into. >> * @return Refer