added missing template keyword (required by clang)

This commit is contained in:
dariomt 2016-01-19 16:20:27 +01:00
parent e2f0e8b945
commit db3c7fdb96
2 changed files with 2 additions and 2 deletions

View file

@ -2424,7 +2424,7 @@ class basic_json
{
using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>();
auto ptr = obj.template get_ptr<PointerType>();
if (ptr) return *ptr;
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
}

View file

@ -2424,7 +2424,7 @@ class basic_json
{
using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>();
auto ptr = obj.template get_ptr<PointerType>();
if (ptr) return *ptr;
throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name());
}