fix compilation on gcc 4.9

This commit is contained in:
Théo DELRIEU 2016-10-23 17:56:13 +02:00 committed by Theo
parent e90553f863
commit 0ec64b6df4

View File

@ -3028,7 +3028,7 @@ class basic_json
*/ */
template<typename ValueType, typename std::enable_if< template<typename ValueType, typename std::enable_if<
not std::is_pointer<ValueType>::value, int>::type = 0> not std::is_pointer<ValueType>::value, int>::type = 0>
auto get() const -> decltype(get_impl(static_cast<ValueType*>(nullptr))) auto get() const -> decltype(this->get_impl(static_cast<ValueType*>(nullptr)))
{ {
return get_impl(static_cast<ValueType*>(nullptr)); return get_impl(static_cast<ValueType*>(nullptr));
} }