Fixed build for Xcode. Beta 9040127.

This commit is contained in:
John Preston 2016-04-11 01:06:38 +04:00
parent 418e06052c
commit 2b58e4d3a8
1 changed files with 6 additions and 6 deletions

View File

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