From e2f0e8b945abe86906455139274fc37f1b9afdb4 Mon Sep 17 00:00:00 2001 From: dariomt Date: Tue, 19 Jan 2016 14:56:07 +0100 Subject: [PATCH] added missing typename (required by clang/gcc) --- 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 db3d13aa..920dd4d6 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2422,7 +2422,7 @@ class basic_json template static ReferenceType get_ref_impl(ThisType& obj) { - using PointerType = std::add_pointer::type; + using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() auto ptr = obj.get_ptr(); if (ptr) return *ptr; diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 474cb750..13f74993 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -2422,7 +2422,7 @@ class basic_json template static ReferenceType get_ref_impl(ThisType& obj) { - using PointerType = std::add_pointer::type; + using PointerType = typename std::add_pointer::type; // delegate the call to get_ptr<>() auto ptr = obj.get_ptr(); if (ptr) return *ptr;