Remove unnecessary definition of exact_type<T>::operator!=
This commit is contained in:
parent
6da1956337
commit
ca1e3b1540
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <type_traits>
|
||||
#include "dxxsconf.h"
|
||||
|
||||
template <typename T>
|
||||
class exact_type
|
||||
|
@ -22,8 +21,6 @@ public:
|
|||
bool operator>(U &&) const = delete;
|
||||
template <typename U>
|
||||
bool operator>=(U &&) const = delete;
|
||||
template <typename U>
|
||||
bool operator!=(U &&rhs) const { return !operator==(static_cast<U &&>(rhs)); }
|
||||
constexpr exact_type(T *t) : p(t) {}
|
||||
// Conversion to the exact type is permitted
|
||||
constexpr operator const T *() const { return p; }
|
||||
|
|
Loading…
Reference in a new issue