added missing template keyword (required by clang)
This commit is contained in:
parent
e2f0e8b945
commit
db3c7fdb96
2 changed files with 2 additions and 2 deletions
|
@ -2424,7 +2424,7 @@ class basic_json
|
||||||
{
|
{
|
||||||
using PointerType = typename 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.template get_ptr<PointerType>();
|
||||||
if (ptr) return *ptr;
|
if (ptr) return *ptr;
|
||||||
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
|
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
|
||||||
}
|
}
|
||||||
|
|
|
@ -2424,7 +2424,7 @@ class basic_json
|
||||||
{
|
{
|
||||||
using PointerType = typename 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.template get_ptr<PointerType>();
|
||||||
if (ptr) return *ptr;
|
if (ptr) return *ptr;
|
||||||
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
|
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue