mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 12:38:12 +00:00
to allow for ADL in int_to_string() function
This commit is contained in:
1 parent
691fb0c57a
commit
aeef50709e
2 files changed
+6
-2
No files matched your search
@@ -16,7 +16,9 @@ template<typename string_type, typename std::enable_if<
|
|||||||
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
||||||
void int_to_string( string_type& target, std::size_t value )
|
void int_to_string( string_type& target, std::size_t value )
|
||||||
{
|
{
|
||||||
target = std::to_string(value);
|
// For ADL
|
||||||
|
using std::to_string;
|
||||||
|
target = to_string(value);
|
||||||
}
|
}
|
||||||
template <typename IteratorType> class iteration_proxy_value
|
template <typename IteratorType> class iteration_proxy_value
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3654,7 +3654,9 @@ template<typename string_type, typename std::enable_if<
|
|||||||
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
||||||
void int_to_string( string_type& target, std::size_t value )
|
void int_to_string( string_type& target, std::size_t value )
|
||||||
{
|
{
|
||||||
target = std::to_string(value);
|
// For ADL
|
||||||
|
using std::to_string;
|
||||||
|
target = to_string(value);
|
||||||
}
|
}
|
||||||
template <typename IteratorType> class iteration_proxy_value
|
template <typename IteratorType> class iteration_proxy_value
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user