This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Implement move semantics for iostreams


On 22/09/14 14:35 +0100, Jonathan Wakely wrote:
This adds move and swap functions to the iostream classes.

This fixes a silly typo.

Tested x86_64-linux, committed to trunk.

commit acaef9854dff5f37d86b80fc8236df5fd90b0ca5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Sep 24 10:10:28 2014 +0100

    	PR libstdc++/63353
    	* src/c++11/ios.cc (ios_base::_M_swap): Fix typo.

diff --git a/libstdc++-v3/src/c++11/ios.cc b/libstdc++-v3/src/c++11/ios.cc
index b5124ec..0e136d4 100644
--- a/libstdc++-v3/src/c++11/ios.cc
+++ b/libstdc++-v3/src/c++11/ios.cc
@@ -229,7 +229,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
      std::swap(_M_local_word, __rhs._M_local_word); // array swap
     else
      {
-       if (!__lhs_local && !__lhs_local)
+       if (!__lhs_local && !__rhs_local)
 	 std::swap(_M_word, __rhs._M_word);
        else
 	 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]