diff --git a/Fleece/API_Impl/Fleece+ImplGlue.hh b/Fleece/API_Impl/Fleece+ImplGlue.hh index 37590869..f8865ec8 100644 --- a/Fleece/API_Impl/Fleece+ImplGlue.hh +++ b/Fleece/API_Impl/Fleece+ImplGlue.hh @@ -135,7 +135,7 @@ namespace fleece::impl { template auto do_(CALLBACK const& callback) { return std::visit([&](auto& e) { - if constexpr (std::is_pointer_v<__typeof(e)>) + if constexpr (std::is_pointer_v>) return callback(*e); else return callback(e); diff --git a/Fleece/Core/Builder.cc b/Fleece/Core/Builder.cc index 043183c0..12ca47dc 100644 --- a/Fleece/Core/Builder.cc +++ b/Fleece/Core/Builder.cc @@ -166,7 +166,7 @@ namespace fleece::impl::builder { } #endif std::visit([&](auto val) { - if constexpr (!is_same_v<__typeof(val), monostate> && !is_same_v<__typeof(val), const void*>) + if constexpr (!is_same_v && !is_same_v) inSlot.set(val); }, p); return true; @@ -299,11 +299,11 @@ namespace fleece::impl::builder { if (key) _encoder.writeKey(key); std::visit([&](auto val) { - if constexpr (is_same_v<__typeof(val), monostate>) { + if constexpr (is_same_v) { // - } else if constexpr (is_same_v<__typeof(val), bool>) { + } else if constexpr (is_same_v) { _encoder.writeBool(val); - } else if constexpr (is_same_v<__typeof(val), const void*>) { + } else if constexpr (is_same_v) { #ifdef __APPLE__ _encoder.writeCF(val); #endif