From c015ba7df21cfb696a1c88ce2392ea48230fb7b2 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Thu, 14 Aug 2025 08:43:57 -0600 Subject: [PATCH] :art: Change operator used for type detection Problem: - Type detection uses `+` and `*`. Solution: - Change to `+` and `-`. --- include/stdx/utility.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stdx/utility.hpp b/include/stdx/utility.hpp index 8783a1c..a0ab217 100644 --- a/include/stdx/utility.hpp +++ b/include/stdx/utility.hpp @@ -157,10 +157,10 @@ struct type_val { template >> - friend constexpr auto operator*(T, U const &) -> value_marker { + friend constexpr auto operator-(T, U const &) -> value_marker { return {}; } - friend constexpr auto operator*(type_val const &f) -> type_val { return f; } + friend constexpr auto operator-(type_val const &f) -> type_val { return f; } // NOLINTNEXTLINE(google-explicit-constructor) template constexpr operator T() const { @@ -236,7 +236,7 @@ template constexpr auto is_ct_v = is_ct_v; #ifndef STDX_IS_TYPE #define STDX_IS_TYPE(...) \ - ::stdx::cxv_detail::is_type #endif