fixed #48 (using nonmember begin/end)
This commit is contained in:
parent
5526de1385
commit
abc6137001
2 changed files with 7 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue