mirror of
https://github.com/nlohmann/json.git
synced 2024-11-23 22:19:02 +08:00
Squash a warning
This commit is contained in:
parent
ad4da95ca1
commit
876de47953
@ -48,7 +48,7 @@ class wrapped_int
|
||||
// allow implicit conversions from any builtin types that `T` allows conversions from
|
||||
template<typename T2,
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user