Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid double exchange
  • Loading branch information
frederick-vs-ja authored Dec 6, 2023
commit f17e9f814379003bc4056ac1a27d21cb3d340575
2 changes: 1 addition & 1 deletion stl/inc/sstream
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public:
basic_stringbuf(basic_stringbuf&& _Right)
: _Seekhigh(_STD exchange(_Right._Seekhigh, nullptr)), _Mystate(_STD exchange(_Right._Mystate, 0)),
_Al(_Right._Al) {
_Take_contents(_STD move(_Right));
_Mysb::swap(_Right);
}

basic_stringbuf& operator=(basic_stringbuf&& _Right) noexcept(
Expand Down