forked from boostorg/optional
described headers in docs; added move in operator>>
This commit is contained in:
1 parent
0a8a798c3a
commit
6e40825098
21 files changed
+3294
-2695
No files matched your search
@@ -62,7 +62,11 @@ operator>>(std::basic_istream<CharType, CharTrait>& in, optional<T>& v)
|
||||
{
|
||||
T x;
|
||||
in >> x;
|
||||
#ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
|
||||
v = boost::move(x);
|
||||
#else
|
||||
v = x;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user