Commit b30abdb4 authored by Krystian Kuzniarek's avatar Krystian Kuzniarek

remove a superfluous template parameter

parent 394b17c0
...@@ -240,12 +240,12 @@ public: ...@@ -240,12 +240,12 @@ public:
} }
} }
template<typename U = T, typename = typename std::enable_if<types::has_equalto_operator<U>::value>::type> template<typename = typename std::enable_if<types::has_equalto_operator<T>::value>::type>
bool operator==(const Optional<T>& other) const { bool operator==(const Optional<T>& other) const {
return (isEmpty() && other.isEmpty()) || (!isEmpty() && !other.isEmpty() && get() == other.get()); return (isEmpty() && other.isEmpty()) || (!isEmpty() && !other.isEmpty() && get() == other.get());
} }
template<typename U = T, typename = typename std::enable_if<types::has_equalto_operator<U>::value>::type> template<typename = typename std::enable_if<types::has_equalto_operator<T>::value>::type>
bool operator!=(const Optional<T>& other) const { bool operator!=(const Optional<T>& other) const {
return !(*this == other); return !(*this == other);
} }
......
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