Update unit-custom-integer.cpp
This commit is contained in:
parent
2f8a6621c6
commit
f77b8e5c41
@ -47,7 +47,7 @@ class wrapped_int
|
|||||||
|
|
||||||
// allow implicit conversions from anything that `T` allows conversions from
|
// allow implicit conversions from anything that `T` allows conversions from
|
||||||
template<typename T2, typename = typename std::enable_if<std::is_convertible<T2, T>::value>::type>
|
template<typename T2, typename = typename std::enable_if<std::is_convertible<T2, T>::value>::type>
|
||||||
wrapped_int(T2 val) : val(val) {}
|
wrapped_int(T2 val) : m_val(val) {}
|
||||||
|
|
||||||
bool operator==(const wrapped_int& other) const
|
bool operator==(const wrapped_int& other) const
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user