diff --git a/include/zeus/expected.hpp b/include/zeus/expected.hpp index 98b61d6..b0d3261 100644 --- a/include/zeus/expected.hpp +++ b/include/zeus/expected.hpp @@ -8,7 +8,7 @@ #define ZEUS_EXPECTED_VERSION_MAJOR 1 #define ZEUS_EXPECTED_VERSION_MINOR 3 -#define ZEUS_EXPECTED_VERSION_PATCH 2 +#define ZEUS_EXPECTED_VERSION_PATCH 3 #if defined(_MSVC_LANG) #define ZEUS_EXPECTED_CPLUSPLUS _MSVC_LANG @@ -28,9 +28,9 @@ static_assert(false, "This expected variant requires C++17"); // Detect exception support #if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) - #define ZEUS_EXPECTED_THROW(e) (throw (e)) + #define ZEUS_EXPECTED_THROW(e) (throw(e)) #else - #define ZEUS_EXPECTED_THROW(e) ((void)(e), std::terminate()) + #define ZEUS_EXPECTED_THROW(e) ((void) (e), std::terminate()) #endif #define ZEUS_EXPECTED_ABI_TAG expected_abi @@ -1222,6 +1222,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t && std::is_convertible_v> * = nullptr, // expected_detail::enable_from_other_expected_t * = nullptr> constexpr expected(const expected &rhs) // @@ -1242,6 +1243,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t && std::is_convertible_v)> * = nullptr, // expected_detail::enable_from_other_expected_t * = nullptr> constexpr explicit expected(const expected &rhs) // @@ -1262,6 +1264,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t && std::is_convertible_v> * = nullptr, // expected_detail::enable_from_other_expected_t * = nullptr> constexpr expected(expected &&rhs) // @@ -1282,6 +1285,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t && std::is_convertible_v)> * = nullptr, // expected_detail::enable_from_other_expected_t * = nullptr> constexpr explicit expected(expected &&rhs) // @@ -2173,6 +2177,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t> * = nullptr, // expected_detail::enable_from_other_void_expected_t * = nullptr> constexpr expected(const expected &rhs) // @@ -2192,6 +2197,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t> * = nullptr, // expected_detail::enable_from_other_void_expected_t * = nullptr> constexpr explicit expected(const expected &rhs) // @@ -2211,6 +2217,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t> * = nullptr, // expected_detail::enable_from_other_void_expected_t * = nullptr> constexpr expected(expected &&rhs) // @@ -2230,6 +2237,7 @@ class expected template< class U, // class G, // + std::enable_if_t, expected>> * = nullptr, // std::enable_if_t> * = nullptr, // expected_detail::enable_from_other_void_expected_t * = nullptr> constexpr explicit expected(expected &&rhs) //