mirror of
https://github.com/nlohmann/json.git
synced 2025-07-21 04:22:05 +03:00
fix issue#2059
This commit is contained in:
@ -12,7 +12,8 @@ namespace nlohmann
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
template<typename string_type>
|
||||
template<typename string_type, typename std::enable_if<
|
||||
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
||||
void int_to_string( string_type& target, std::size_t value )
|
||||
{
|
||||
target = std::to_string(value);
|
||||
|
@ -3650,7 +3650,8 @@ namespace nlohmann
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
template<typename string_type>
|
||||
template<typename string_type, typename std::enable_if<
|
||||
std::is_same<char, typename string_type::value_type>::value, int>::type = 0>
|
||||
void int_to_string( string_type& target, std::size_t value )
|
||||
{
|
||||
target = std::to_string(value);
|
||||
|
Reference in New Issue
Block a user