From 540b763408d05e22bcf4b595ba9fbd5b05c7396b Mon Sep 17 00:00:00 2001 From: Ross Bencina Date: Mon, 25 May 2015 02:35:15 +1000 Subject: [PATCH] MSVC2013 does support alias declarations. However I needed to sprinkle `typename` here to make it work. --- src/json.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 7127182ad6..cf060659f0 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2364,15 +2364,15 @@ class basic_json public: /// the type of the values when the iterator is dereferenced - using value_type = basic_json::value_type; + using value_type = typename basic_json::value_type; /// a type to represent differences between iterators - using difference_type = basic_json::difference_type; + using difference_type = typename basic_json::difference_type; /// defines a pointer to the type iterated over (value_type) - using pointer = basic_json::pointer; + using pointer = typename basic_json::pointer; /// defines a reference to the type iterated over (value_type) - using reference = basic_json::reference; + using reference = typename basic_json::reference; /// the category of the iterator - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = typename std::bidirectional_iterator_tag; /// default constructor inline iterator() = default; @@ -2880,15 +2880,15 @@ class basic_json public: /// the type of the values when the iterator is dereferenced - using value_type = basic_json::value_type; + using value_type = typename basic_json::value_type; /// a type to represent differences between iterators - using difference_type = basic_json::difference_type; + using difference_type = typename basic_json::difference_type; /// defines a pointer to the type iterated over (value_type) - using pointer = basic_json::const_pointer; + using pointer = typename basic_json::const_pointer; /// defines a reference to the type iterated over (value_type) - using reference = basic_json::const_reference; + using reference = typename basic_json::const_reference; /// the category of the iterator - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = typename std::bidirectional_iterator_tag; /// default constructor inline const_iterator() = default;