From 36161cdb19b74a871a8fa99567985b7d05f8b146 Mon Sep 17 00:00:00 2001 From: X1aomu Date: Thu, 21 May 2026 16:17:21 +0800 Subject: [PATCH 1/3] style: format code --- include/zeus/expected.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zeus/expected.hpp b/include/zeus/expected.hpp index 98b61d6..59a075e 100644 --- a/include/zeus/expected.hpp +++ b/include/zeus/expected.hpp @@ -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 From 967bd708898074168b3589ba15829b8a2f7c6555 Mon Sep 17 00:00:00 2001 From: X1aomu Date: Thu, 21 May 2026 16:17:07 +0800 Subject: [PATCH 2/3] perf: short-circuting some SFINAE checks --- include/zeus/expected.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/zeus/expected.hpp b/include/zeus/expected.hpp index 59a075e..b30315b 100644 --- a/include/zeus/expected.hpp +++ b/include/zeus/expected.hpp @@ -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) // From 1b9f2d271a38e749d74004590c32150202952cb1 Mon Sep 17 00:00:00 2001 From: X1aomu Date: Thu, 21 May 2026 16:22:56 +0800 Subject: [PATCH 3/3] chore(release): v1.3.3 --- include/zeus/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zeus/expected.hpp b/include/zeus/expected.hpp index b30315b..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