git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@148069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae8b16e047
commit
e1a7b04c58
@ -549,7 +549,7 @@ basic_filebuf<_CharT, _Traits>::close()
|
|||||||
{
|
{
|
||||||
__rt = this;
|
__rt = this;
|
||||||
unique_ptr<FILE, int(*)(FILE*)> __h(__file_, fclose);
|
unique_ptr<FILE, int(*)(FILE*)> __h(__file_, fclose);
|
||||||
if ((__cm_ & ios_base::out) && sync())
|
if (sync())
|
||||||
__rt = 0;
|
__rt = 0;
|
||||||
if (fclose(__h.release()) == 0)
|
if (fclose(__h.release()) == 0)
|
||||||
__file_ = 0;
|
__file_ = 0;
|
||||||
|
@ -1218,12 +1218,12 @@ typename enable_if
|
|||||||
<
|
<
|
||||||
!is_lvalue_reference<_Stream>::value &&
|
!is_lvalue_reference<_Stream>::value &&
|
||||||
is_base_of<ios_base, _Stream>::value,
|
is_base_of<ios_base, _Stream>::value,
|
||||||
_Stream&
|
_Stream&&
|
||||||
>::type
|
>::type
|
||||||
operator<<(_Stream&& __os, const _Tp& __x)
|
operator<<(_Stream&& __os, const _Tp& __x)
|
||||||
{
|
{
|
||||||
__os << __x;
|
__os << __x;
|
||||||
return __os;
|
return _VSTD::move(__os);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
Loading…
Reference in New Issue
Block a user