Unverified Commit 635b9a0a by Niels Lohmann Committed by GitHub

Merge pull request #2193 from dota17/issue#2059

Fix consistency in function `int_to_string()`
parents 8575fdf9 0ecf2974
...@@ -15,7 +15,9 @@ namespace detail ...@@ -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 ...@@ -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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment