fix(memory): using the overloaded & instead of std::addressof
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
bf8ffc3dc9
commit
bf6f2e9981
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ public:
|
||||||
|
|
||||||
auto operator=(NullOnMove &&other) noexcept -> NullOnMove &
|
auto operator=(NullOnMove &&other) noexcept -> NullOnMove &
|
||||||
{
|
{
|
||||||
if (this == &other)
|
if (this == std::addressof(other))
|
||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue