From b3ce95c422e70d0a3b1d4afb4ae3105277080725 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 18 Feb 2024 17:20:16 -0600 Subject: [PATCH] Update nonstd::optional --- src/nonstd/optional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nonstd/optional.hpp b/src/nonstd/optional.hpp index c1e0f5db..85febc3d 100644 --- a/src/nonstd/optional.hpp +++ b/src/nonstd/optional.hpp @@ -12,7 +12,7 @@ #define NONSTD_OPTIONAL_LITE_HPP #define optional_lite_MAJOR 3 -#define optional_lite_MINOR 5 +#define optional_lite_MINOR 6 #define optional_lite_PATCH 0 #define optional_lite_VERSION optional_STRINGIFY(optional_lite_MAJOR) "." optional_STRINGIFY(optional_lite_MINOR) "." optional_STRINGIFY(optional_lite_PATCH) @@ -1555,7 +1555,7 @@ private: void initialize( V && value ) { assert( ! has_value() ); - contained.construct_value( std::move( value ) ); + contained.construct_value( std::forward( value ) ); has_value_ = true; }