added missing typename (required by clang/gcc)

This commit is contained in:
dariomt 2016-01-19 14:56:07 +01:00
parent 4d079d135e
commit e2f0e8b945
2 changed files with 2 additions and 2 deletions

View file

@ -2422,7 +2422,7 @@ class basic_json
template<typename ReferenceType, typename ThisType>
static ReferenceType get_ref_impl(ThisType& obj)
{
using PointerType = std::add_pointer<ReferenceType>::type;
using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>();
if (ptr) return *ptr;

View file

@ -2422,7 +2422,7 @@ class basic_json
template<typename ReferenceType, typename ThisType>
static ReferenceType get_ref_impl(ThisType& obj)
{
using PointerType = std::add_pointer<ReferenceType>::type;
using PointerType = typename std::add_pointer<ReferenceType>::type;
// delegate the call to get_ptr<>()
auto ptr = obj.get_ptr<PointerType>();
if (ptr) return *ptr;