In specific class,
It is working..
private:
template <typename U>
int64_t parseValue(const std::string& str
, typename std::enable_if<std::is_signed<T>::value, U>::type* = 0
) const
{
return stoll(str, 0, base_);
}
template <typename U>
uint64_t parseValue(const std::string& str
, typename std::enable_if<std::is_unsigned<T>::value, U>::type* = 0
) const
{
but the code below does not work. I do not know why. I do not know if there is a lack of specialization concepts or other problems.
private:
template <typename U>
int64_t parseValue(const std::string& str
, typename std::enable_if<std::is_signed<T>::value>::type* = 0
) const
{
return stoll(str, 0, base_);
}
template <typename U>
uint64_t parseValue(const std::string& str
, typename std::enable_if<std::is_unsigned<T>::value>::type* = 0
) const
It is not working.
Could you explain? I don't know why..