Skip to content

Commit

Permalink
added 'typename' to reverse_iterator declarations. MSVC2013 would not…
Browse files Browse the repository at this point in the history
… parse without them
  • Loading branch information
RossBencina committed May 24, 2015
1 parent ec18289 commit f673c8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3400,10 +3400,10 @@ class basic_json
};

/// a reverse random access iterator for the basic_json class
class reverse_iterator : private std::reverse_iterator<basic_json::iterator>
class reverse_iterator : private std::reverse_iterator<typename basic_json::iterator>
{
public:
inline reverse_iterator(const typename std::reverse_iterator<basic_json::iterator>::iterator_type&
inline reverse_iterator(const typename std::reverse_iterator<typename basic_json::iterator>::iterator_type&
it)
: std::reverse_iterator<basic_json::iterator>(it) {}

Expand All @@ -3421,11 +3421,11 @@ class basic_json
};

/// a const reverse random access iterator for the basic_json class
class const_reverse_iterator : private std::reverse_iterator<basic_json::const_iterator>
class const_reverse_iterator : private std::reverse_iterator<typename basic_json::const_iterator>
{
public:
inline const_reverse_iterator(const typename
std::reverse_iterator<basic_json::const_iterator>::iterator_type& it)
std::reverse_iterator<typename basic_json::const_iterator>::iterator_type& it)
: std::reverse_iterator<basic_json::const_iterator>(it) {}

/// return the key of an object iterator
Expand Down

0 comments on commit f673c8d

Please sign in to comment.