diff --git a/include/nonstd/optional.hpp b/include/nonstd/optional.hpp index c1e0f5d..51f2bcc 100644 --- a/include/nonstd/optional.hpp +++ b/include/nonstd/optional.hpp @@ -1555,7 +1555,7 @@ class optional void initialize( V && value ) { assert( ! has_value() ); - contained.construct_value( std::move( value ) ); + contained.construct_value( std::forward( value ) ); has_value_ = true; }