Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions include/nonstd/string_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ class basic_string_view

nssv_constexpr14 void swap( basic_string_view & other ) nssv_noexcept
{
using std::swap;
swap( data_, other.data_ );
swap( size_, other.size_ );
const basic_string_view tmp(other);
other = *this;
*this = tmp;
}

// 24.4.2.6 String operations:
Expand Down