diff --git a/src/json.hpp b/src/json.hpp index db3d13aa..920dd4d6 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2422,7 +2422,7 @@ class basic_json template static ReferenceType get_ref_impl(ThisType& obj) { - using PointerType = std::add_pointer::type; + using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() auto ptr = obj.get_ptr(); if (ptr) return *ptr; diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 474cb750..13f74993 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -2422,7 +2422,7 @@ class basic_json template static ReferenceType get_ref_impl(ThisType& obj) { - using PointerType = std::add_pointer::type; + using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() auto ptr = obj.get_ptr(); if (ptr) return *ptr;