mirror of https://github.com/nlohmann/json.git
Squash a warning
parent
ad4da95ca1
commit
876de47953
|
@ -48,7 +48,7 @@ class wrapped_int
|
||||||
// allow implicit conversions from any builtin types that `T` allows conversions from
|
// allow implicit conversions from any builtin types that `T` allows conversions from
|
||||||
template<typename T2,
|
template<typename T2,
|
||||||
typename = typename std::enable_if<std::is_convertible<T2, T>::value && std::is_arithmetic<T2>::value>::type>
|
typename = typename std::enable_if<std::is_convertible<T2, T>::value && std::is_arithmetic<T2>::value>::type>
|
||||||
wrapped_int(T2 val) : m_val(val) {}
|
wrapped_int(T2 val) : m_val(static_cast<T>(val)) {}
|
||||||
|
|
||||||
bool operator==(const wrapped_int& other) const
|
bool operator==(const wrapped_int& other) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue