Skip to content

Commit

Permalink
MSVC2013 does support alias declarations. However I needed to sprinkl…
Browse files Browse the repository at this point in the history
…e `typename` here to make it work.
  • Loading branch information
RossBencina committed May 24, 2015
1 parent 6863e13 commit 540b763
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 540b763

Please sign in to comment.