Merge pull request #2193 from dota17/issue#2059

Fix consistency in function `int_to_string()`
This commit is contained in:
Niels Lohmann 2020-06-24 11:46:48 +02:00 committed by GitHub
commit 635b9a0ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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
{ {

View File

@ -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
{ {