Add deep const to unique_ptr::operator->
This commit is contained in:
2 files changed
+25
-21
No files matched your search
@@ -64,7 +64,11 @@ namespace Detail {
|
||||
assert(m_ptr);
|
||||
return *m_ptr;
|
||||
}
|
||||
T* operator->() const noexcept {
|
||||
T* operator->() noexcept {
|
||||
assert(m_ptr);
|
||||
return m_ptr;
|
||||
}
|
||||
T const* operator->() const noexcept {
|
||||
assert(m_ptr);
|
||||
return m_ptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user