summaryrefslogtreecommitdiff
path: root/include/fstream
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-13 02:03:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-13 02:03:45 +0000
commit1dc6f7ab975323ba3aca9bcfc884a15a7aac7834 (patch)
tree3a868f137aca521fac9c68f18eefb604d926f8a9 /include/fstream
parent75536baae747cc5e2202285e416ef037a70cd156 (diff)
Don't neglect to "return *this".
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@165860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/fstream')
-rw-r--r--include/fstream1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fstream b/include/fstream
index 7b6578f1e..1b8e7a0a5 100644
--- a/include/fstream
+++ b/include/fstream
@@ -344,6 +344,7 @@ basic_filebuf<_CharT, _Traits>::operator=(basic_filebuf&& __rhs)
{
close();
swap(__rhs);
+ return *this;
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES