more on #48: allowing non-std begin/end functions
This commit is contained in:
1 parent
6fc52f3302
commit
e3188897f8
2 files changed
+12
-4
No files matched your search
+6
-2
@@ -411,7 +411,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
Allocator<object_t> alloc;
|
Allocator<object_t> alloc;
|
||||||
m_value.object = alloc.allocate(1);
|
m_value.object = alloc.allocate(1);
|
||||||
alloc.construct(m_value.object, std::begin(value), std::end(value));
|
using std::begin;
|
||||||
|
using std::end;
|
||||||
|
alloc.construct(m_value.object, begin(value), end(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// create an array (explicit)
|
/// create an array (explicit)
|
||||||
@@ -439,7 +441,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
Allocator<array_t> alloc;
|
Allocator<array_t> alloc;
|
||||||
m_value.array = alloc.allocate(1);
|
m_value.array = alloc.allocate(1);
|
||||||
alloc.construct(m_value.array, std::begin(value), std::end(value));
|
using std::begin;
|
||||||
|
using std::end;
|
||||||
|
alloc.construct(m_value.array, begin(value), end(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// create a string (explicit)
|
/// create a string (explicit)
|
||||||
|
|||||||
+6
-2
@@ -411,7 +411,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
Allocator<object_t> alloc;
|
Allocator<object_t> alloc;
|
||||||
m_value.object = alloc.allocate(1);
|
m_value.object = alloc.allocate(1);
|
||||||
alloc.construct(m_value.object, std::begin(value), std::end(value));
|
using std::begin;
|
||||||
|
using std::end;
|
||||||
|
alloc.construct(m_value.object, begin(value), end(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// create an array (explicit)
|
/// create an array (explicit)
|
||||||
@@ -439,7 +441,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
Allocator<array_t> alloc;
|
Allocator<array_t> alloc;
|
||||||
m_value.array = alloc.allocate(1);
|
m_value.array = alloc.allocate(1);
|
||||||
alloc.construct(m_value.array, std::begin(value), std::end(value));
|
using std::begin;
|
||||||
|
using std::end;
|
||||||
|
alloc.construct(m_value.array, begin(value), end(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// create a string (explicit)
|
/// create a string (explicit)
|
||||||
|
|||||||
Reference in new issue
Block a user