added missing template keyword (required by clang)

This commit is contained in:
dariomt committed 2016-01-19 16:20:27 +01:00
1 parent e2f0e8b945
commit db3c7fdb96
2 files changed
+2 -2

No files matched your search

+1 -1
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());
}
+1 -1
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());
}