From ec194b9c577c97aacc62e715690d94a9905e2cea Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Mon, 15 Sep 2025 17:17:03 -0700 Subject: [PATCH] Remove overzealous ::template. ::template may only be used where explicit template arguments are supplied in this context, causing a build failure on macOS 16.5.1: ```console /Users/vcpkg/Data/b/cpprealm/src/v2.2.0-f80d578acb.clean/include/cpprealm/schema.hpp:256:67: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 256 | auto ptr = managed::template unmanaged_to_managed_pointer(property.ptr); | ^ /Users/vcpkg/Data/b/cpprealm/src/v2.2.0-f80d578acb.clean/include/cpprealm/schema.hpp:266:67: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 266 | auto ptr = managed::template unmanaged_to_managed_pointer(property.ptr); | ^ ``` --- include/cpprealm/schema.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cpprealm/schema.hpp b/include/cpprealm/schema.hpp index 7494d600..7479c3c1 100644 --- a/include/cpprealm/schema.hpp +++ b/include/cpprealm/schema.hpp @@ -253,7 +253,7 @@ namespace realm { if constexpr (N + 1 == sizeof...(Properties)) { if (property_name == std::string_view(names[N])) { - auto ptr = managed::template unmanaged_to_managed_pointer(property.ptr); + auto ptr = managed::unmanaged_to_managed_pointer(property.ptr); if constexpr (std::is_pointer_v) { return (cls.*ptr); } else { @@ -263,7 +263,7 @@ namespace realm { return variant_t{}; } else { if (property_name == std::string_view(names[N])) { - auto ptr = managed::template unmanaged_to_managed_pointer(property.ptr); + auto ptr = managed::unmanaged_to_managed_pointer(property.ptr); if constexpr (std::is_pointer_v) { return (cls.*ptr); } else {