forked from boostorg/optional
refactor: address code review comments
This commit is contained in:
@@ -63,11 +63,7 @@ operator>>(std::basic_istream<CharType, CharTrait>& in, optional<T>& v)
|
||||
{
|
||||
T x;
|
||||
in >> x;
|
||||
#ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
|
||||
v = std::move(x);
|
||||
#else
|
||||
v = x;
|
||||
#endif
|
||||
v = optional_detail::move(x);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user