Remove unnecessary definition of exact_type<T>::operator!=

This commit is contained in:
Kp 2022-11-13 21:17:23 +00:00
parent 6da1956337
commit ca1e3b1540

View file

@ -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; }