From 0949eedbd621bc1611266fb180d9a356ee1eaf9f Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 30 Jun 2011 21:18:19 +0000 Subject: _STD -> _VSTD to avoid macro clash on windows git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@134190 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/fstream | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'include/fstream') diff --git a/include/fstream b/include/fstream index ea9aee673..7034aab11 100644 --- a/include/fstream +++ b/include/fstream @@ -362,9 +362,9 @@ basic_filebuf<_CharT, _Traits>::swap(basic_filebuf& __rhs) basic_streambuf::swap(__rhs); if (__extbuf_ != __extbuf_min_ && __rhs.__extbuf_ != __rhs.__extbuf_min_) { - _STD::swap(__extbuf_, __rhs.__extbuf_); - _STD::swap(__extbufnext_, __rhs.__extbufnext_); - _STD::swap(__extbufend_, __rhs.__extbufend_); + _VSTD::swap(__extbuf_, __rhs.__extbuf_); + _VSTD::swap(__extbufnext_, __rhs.__extbufnext_); + _VSTD::swap(__extbufend_, __rhs.__extbufend_); } else { @@ -387,17 +387,17 @@ basic_filebuf<_CharT, _Traits>::swap(basic_filebuf& __rhs) __rhs.__extbufnext_ = __rhs.__extbuf_ + __ln; __rhs.__extbufend_ = __rhs.__extbuf_ + __le; } - _STD::swap(__ebs_, __rhs.__ebs_); - _STD::swap(__intbuf_, __rhs.__intbuf_); - _STD::swap(__ibs_, __rhs.__ibs_); - _STD::swap(__file_, __rhs.__file_); - _STD::swap(__cv_, __rhs.__cv_); - _STD::swap(__st_, __rhs.__st_); - _STD::swap(__om_, __rhs.__om_); - _STD::swap(__cm_, __rhs.__cm_); - _STD::swap(__owns_eb_, __rhs.__owns_eb_); - _STD::swap(__owns_ib_, __rhs.__owns_ib_); - _STD::swap(__always_noconv_, __rhs.__always_noconv_); + _VSTD::swap(__ebs_, __rhs.__ebs_); + _VSTD::swap(__intbuf_, __rhs.__intbuf_); + _VSTD::swap(__ibs_, __rhs.__ibs_); + _VSTD::swap(__file_, __rhs.__file_); + _VSTD::swap(__cv_, __rhs.__cv_); + _VSTD::swap(__st_, __rhs.__st_); + _VSTD::swap(__om_, __rhs.__om_); + _VSTD::swap(__cm_, __rhs.__cm_); + _VSTD::swap(__owns_eb_, __rhs.__owns_eb_); + _VSTD::swap(__owns_ib_, __rhs.__owns_ib_); + _VSTD::swap(__always_noconv_, __rhs.__always_noconv_); if (this->eback() == (char_type*)__rhs.__extbuf_min_) { ptrdiff_t __n = this->gptr() - this->eback(); @@ -587,7 +587,7 @@ basic_filebuf<_CharT, _Traits>::underflow() memmove(__extbuf_, __extbufnext_, __extbufend_ - __extbufnext_); __extbufnext_ = __extbuf_ + (__extbufend_ - __extbufnext_); __extbufend_ = __extbuf_ + (__extbuf_ == __extbuf_min_ ? sizeof(__extbuf_min_) : __ebs_); - size_t __nmemb = _STD::min(static_cast(this->egptr() - this->eback() - __unget_sz), + size_t __nmemb = _VSTD::min(static_cast(this->egptr() - this->eback() - __unget_sz), static_cast(__extbufend_ - __extbufnext_)); codecvt_base::result __r; state_type __svs = __st_; @@ -1019,8 +1019,8 @@ basic_ifstream<_CharT, _Traits>::basic_ifstream(const string& __s, ios_base::ope template inline _LIBCPP_INLINE_VISIBILITY basic_ifstream<_CharT, _Traits>::basic_ifstream(basic_ifstream&& __rhs) - : basic_istream(_STD::move(__rhs)), - __sb_(_STD::move(__rhs.__sb_)) + : basic_istream(_VSTD::move(__rhs)), + __sb_(_VSTD::move(__rhs.__sb_)) { this->set_rdbuf(&__sb_); } @@ -1030,8 +1030,8 @@ inline _LIBCPP_INLINE_VISIBILITY basic_ifstream<_CharT, _Traits>& basic_ifstream<_CharT, _Traits>::operator=(basic_ifstream&& __rhs) { - basic_istream::operator=(_STD::move(__rhs)); - __sb_ = _STD::move(__rhs.__sb_); + basic_istream::operator=(_VSTD::move(__rhs)); + __sb_ = _VSTD::move(__rhs.__sb_); return *this; } @@ -1164,8 +1164,8 @@ basic_ofstream<_CharT, _Traits>::basic_ofstream(const string& __s, ios_base::ope template inline _LIBCPP_INLINE_VISIBILITY basic_ofstream<_CharT, _Traits>::basic_ofstream(basic_ofstream&& __rhs) - : basic_ostream(_STD::move(__rhs)), - __sb_(_STD::move(__rhs.__sb_)) + : basic_ostream(_VSTD::move(__rhs)), + __sb_(_VSTD::move(__rhs.__sb_)) { this->set_rdbuf(&__sb_); } @@ -1175,8 +1175,8 @@ inline _LIBCPP_INLINE_VISIBILITY basic_ofstream<_CharT, _Traits>& basic_ofstream<_CharT, _Traits>::operator=(basic_ofstream&& __rhs) { - basic_ostream::operator=(_STD::move(__rhs)); - __sb_ = _STD::move(__rhs.__sb_); + basic_ostream::operator=(_VSTD::move(__rhs)); + __sb_ = _VSTD::move(__rhs.__sb_); return *this; } @@ -1309,8 +1309,8 @@ basic_fstream<_CharT, _Traits>::basic_fstream(const string& __s, ios_base::openm template inline _LIBCPP_INLINE_VISIBILITY basic_fstream<_CharT, _Traits>::basic_fstream(basic_fstream&& __rhs) - : basic_iostream(_STD::move(__rhs)), - __sb_(_STD::move(__rhs.__sb_)) + : basic_iostream(_VSTD::move(__rhs)), + __sb_(_VSTD::move(__rhs.__sb_)) { this->set_rdbuf(&__sb_); } @@ -1320,8 +1320,8 @@ inline _LIBCPP_INLINE_VISIBILITY basic_fstream<_CharT, _Traits>& basic_fstream<_CharT, _Traits>::operator=(basic_fstream&& __rhs) { - basic_iostream::operator=(_STD::move(__rhs)); - __sb_ = _STD::move(__rhs.__sb_); + basic_iostream::operator=(_VSTD::move(__rhs)); + __sb_ = _VSTD::move(__rhs.__sb_); return *this; } -- cgit v1.2.3