[C++] Uplift version to C++20
This commit is contained in:
committed by
Radosław Gliński
parent
a6e3d77504
commit
c3586bc165
@@ -349,7 +349,9 @@ class object_ref {
|
||||
|
||||
void reset(T* value) noexcept { object_ref(value).swap(*this); }
|
||||
|
||||
inline bool operator==(const T* right) noexcept { return value_ == right; }
|
||||
inline bool operator==(const T* right) const noexcept {
|
||||
return value_ == right;
|
||||
}
|
||||
|
||||
private:
|
||||
T* value_ = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user