mirror of
https://github.com/nlohmann/json.git
synced 2024-12-04 22:49:02 +08:00
Merge pull request #2193 from dota17/issue#2059
Fix consistency in function `int_to_string()`
This commit is contained in:
commit
635b9a0ae4
@ -15,7 +15,9 @@ namespace detail
|
|||||||
template<typename string_type>
|
template<typename string_type>
|
||||||
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
|
||||||
{
|
{
|
||||||
|
@ -3657,7 +3657,9 @@ namespace detail
|
|||||||
template<typename string_type>
|
template<typename string_type>
|
||||||
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user