mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
Everywhere: Stop shoving things into ::std and mentioning them as such
Note that this still keeps the old behaviour of putting things in std by default on serenity so the tools can be happy, but if USING_AK_GLOBALLY is unset, AK behaves like a good citizen and doesn't try to put things in the ::std namespace. std::nothrow_t and its friends get to stay because I'm being told that compilers assume things about them and I can't yeet them into a different namespace...for now.
This commit is contained in:
parent
72514d6915
commit
f96a3c002a
27 changed files with 56 additions and 55 deletions
|
@ -113,7 +113,7 @@ struct LockRefPtrTraits {
|
|||
|
||||
static constexpr FlatPtr default_null_value = 0;
|
||||
|
||||
using NullType = std::nullptr_t;
|
||||
using NullType = nullptr_t;
|
||||
};
|
||||
|
||||
template<typename T, typename PtrTraits>
|
||||
|
@ -284,7 +284,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
LockRefPtr& operator=(std::nullptr_t)
|
||||
LockRefPtr& operator=(nullptr_t)
|
||||
{
|
||||
clear();
|
||||
return *this;
|
||||
|
@ -353,8 +353,8 @@ public:
|
|||
|
||||
ALWAYS_INLINE operator bool() { return !is_null(); }
|
||||
|
||||
bool operator==(std::nullptr_t) const { return is_null(); }
|
||||
bool operator!=(std::nullptr_t) const { return !is_null(); }
|
||||
bool operator==(nullptr_t) const { return is_null(); }
|
||||
bool operator!=(nullptr_t) const { return !is_null(); }
|
||||
|
||||
bool operator==(LockRefPtr const& other) const { return as_ptr() == other.as_ptr(); }
|
||||
bool operator!=(LockRefPtr const& other) const { return as_ptr() != other.as_ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue