Skip to content

Commit 36ca876

Browse files
authored
Merge pull request #264 from elbeno/change-type-detect-operator
🎨 Change operator used for type detection
2 parents 7c905d0 + c015ba7 commit 36ca876

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/stdx/utility.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ struct type_val {
157157

158158
template <typename T, typename U,
159159
typename = std::enable_if_t<same_as_unqualified<type_val, U>>>
160-
friend constexpr auto operator*(T, U const &) -> value_marker {
160+
friend constexpr auto operator-(T, U const &) -> value_marker {
161161
return {};
162162
}
163-
friend constexpr auto operator*(type_val const &f) -> type_val { return f; }
163+
friend constexpr auto operator-(type_val const &f) -> type_val { return f; }
164164

165165
// NOLINTNEXTLINE(google-explicit-constructor)
166166
template <typename T> constexpr operator T() const {
@@ -236,7 +236,7 @@ template <typename T> constexpr auto is_ct_v<T const> = is_ct_v<T>;
236236

237237
#ifndef STDX_IS_TYPE
238238
#define STDX_IS_TYPE(...) \
239-
::stdx::cxv_detail::is_type<decltype((__VA_ARGS__) * \
239+
::stdx::cxv_detail::is_type<decltype((__VA_ARGS__) - \
240240
::stdx::cxv_detail::type_val{})>
241241
#endif
242242

0 commit comments

Comments
 (0)