diff --git a/src/platform/utils.hpp b/src/platform/utils.hpp index 7b5a7fc..8fd3e25 100644 --- a/src/platform/utils.hpp +++ b/src/platform/utils.hpp @@ -230,7 +230,7 @@ namespace detail { typename std::enable_if::type, optional>::value, int>::type = 0 > optional& operator=(U&& value) { - optional o(std::move(value)); + optional o(std::forward(value)); swap(o); return *this; }