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