Commit e2f0e8b9 by dariomt

added missing typename (required by clang/gcc)

parent 4d079d13
...@@ -2422,7 +2422,7 @@ class basic_json ...@@ -2422,7 +2422,7 @@ class basic_json
template<typename ReferenceType, typename ThisType> template<typename ReferenceType, typename ThisType>
static ReferenceType get_ref_impl(ThisType& obj) static ReferenceType get_ref_impl(ThisType& obj)
{ {
using PointerType = std::add_pointer<ReferenceType>::type; using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>() // delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>(); auto ptr = obj.get_ptr<PointerType>();
if (ptr) return *ptr; if (ptr) return *ptr;
......
...@@ -2422,7 +2422,7 @@ class basic_json ...@@ -2422,7 +2422,7 @@ class basic_json
template<typename ReferenceType, typename ThisType> template<typename ReferenceType, typename ThisType>
static ReferenceType get_ref_impl(ThisType& obj) static ReferenceType get_ref_impl(ThisType& obj)
{ {
using PointerType = std::add_pointer<ReferenceType>::type; using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>() // delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>(); auto ptr = obj.get_ptr<PointerType>();
if (ptr) return *ptr; if (ptr) return *ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment