1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00

some cleanup for #83

This commit is contained in:
Niels
2015-12-22 18:07:51 +01:00
parent 67c2d90a21
commit 00f9296db5
3 changed files with 26 additions and 4 deletions

View File

@ -6163,7 +6163,7 @@ class basic_json
{
private:
/// the container to iterate
basic_json& container;
typename basic_json::reference container;
/// the type of the iterator to use while iteration
using json_iterator = decltype(std::begin(container));
@ -6236,7 +6236,7 @@ class basic_json
public:
/// construct iterator wrapper from a container
iterator_wrapper(basic_json& cont)
iterator_wrapper(typename basic_json::reference cont)
: container(cont)
{}