From db3c7fdb967ed42a0d39aff43ef0d9cdc145f2b0 Mon Sep 17 00:00:00 2001 From: dariomt Date: Tue, 19 Jan 2016 16:20:27 +0100 Subject: [PATCH] added missing template keyword (required by clang) --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 920dd4d68..81c02857f 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2424,7 +2424,7 @@ class basic_json { using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() - auto ptr = obj.get_ptr(); + auto ptr = obj.template get_ptr(); if (ptr) return *ptr; throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name()); } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 13f749930..0838b234d 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -2424,7 +2424,7 @@ class basic_json { using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() - auto ptr = obj.get_ptr(); + auto ptr = obj.template get_ptr(); if (ptr) return *ptr; throw std::domain_error("incompatible ReferenceType for get_ref, actual type is " + obj.type_name()); }