diff --git a/libcxx/include/strstream b/libcxx/include/strstream --- a/libcxx/include/strstream +++ b/libcxx/include/strstream @@ -257,8 +257,8 @@ #ifndef _LIBCPP_CXX03_LANG _LIBCPP_INLINE_VISIBILITY istrstream(istrstream&& __rhs) - : istream(_VSTD::move(__rhs)), - __sb_(_VSTD::move(__rhs.__sb_)) + : istream(static_cast(__rhs)), + __sb_(_VSTD::move(__rhs.__sb_)) { istream::set_rdbuf(&__sb_); } @@ -306,7 +306,7 @@ #ifndef _LIBCPP_CXX03_LANG _LIBCPP_INLINE_VISIBILITY ostrstream(ostrstream&& __rhs) - : ostream(_VSTD::move(__rhs)), + : ostream((static_cast(__rhs))), __sb_(_VSTD::move(__rhs.__sb_)) { ostream::set_rdbuf(&__sb_); @@ -366,7 +366,7 @@ #ifndef _LIBCPP_CXX03_LANG _LIBCPP_INLINE_VISIBILITY strstream(strstream&& __rhs) - : iostream(_VSTD::move(__rhs)), + : iostream(static_cast(__rhs)), __sb_(_VSTD::move(__rhs.__sb_)) { iostream::set_rdbuf(&__sb_);