mirror of https://github.com/procxx/kepka.git
Fixed build for Xcode. Beta 9040127.
This commit is contained in:
parent
418e06052c
commit
2b58e4d3a8
|
@ -323,9 +323,9 @@ public:
|
||||||
unique_ptr(const unique_ptr<T> &) = delete;
|
unique_ptr(const unique_ptr<T> &) = delete;
|
||||||
unique_ptr<T> &operator=(const unique_ptr<T> &) = delete;
|
unique_ptr<T> &operator=(const unique_ptr<T> &) = delete;
|
||||||
|
|
||||||
constexpr unique_ptr(nullptr_t) {
|
constexpr unique_ptr(std::nullptr_t) {
|
||||||
}
|
}
|
||||||
unique_ptr<T> &operator=(nullptr_t) noexcept {
|
unique_ptr<T> &operator=(std::nullptr_t) noexcept {
|
||||||
reset();
|
reset();
|
||||||
return (*this);
|
return (*this);
|
||||||
}
|
}
|
||||||
|
@ -391,19 +391,19 @@ inline unique_ptr<T> make_unique(Args&&... args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool operator==(const unique_ptr<T> &a, nullptr_t) noexcept {
|
inline bool operator==(const unique_ptr<T> &a, std::nullptr_t) noexcept {
|
||||||
return !a;
|
return !a;
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool operator==(nullptr_t, const unique_ptr<T> &b) noexcept {
|
inline bool operator==(std::nullptr_t, const unique_ptr<T> &b) noexcept {
|
||||||
return !b;
|
return !b;
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool operator!=(const unique_ptr<T> &a, nullptr_t b) noexcept {
|
inline bool operator!=(const unique_ptr<T> &a, std::nullptr_t b) noexcept {
|
||||||
return !(a == b);
|
return !(a == b);
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool operator!=(nullptr_t a, const unique_ptr<T> &b) noexcept {
|
inline bool operator!=(std::nullptr_t a, const unique_ptr<T> &b) noexcept {
|
||||||
return !(a == b);
|
return !(a == b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue