1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-09 11:01:47 +03:00

fixed #48 (using nonmember begin/end)

This commit is contained in:
Niels
2015-03-22 17:30:48 +01:00
parent 5526de1385
commit abc6137001
2 changed files with 7 additions and 6 deletions

View File

@ -410,7 +410,7 @@ class basic_json
{
Allocator<object_t> alloc;
m_value.object = alloc.allocate(1);
alloc.construct(m_value.object, value.begin(), value.end());
alloc.construct(m_value.object, std::begin(value), std::end(value));
}
/// create an array (explicit)
@ -438,7 +438,7 @@ class basic_json
{
Allocator<array_t> alloc;
m_value.array = alloc.allocate(1);
alloc.construct(m_value.array, value.begin(), value.end());
alloc.construct(m_value.array, std::begin(value), std::end(value));
}
/// create a string (explicit)