Commit 691fb0c5 by chenguoping

fix issue#2059

parent e7452d87
......@@ -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);
......
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