Skip to content

Commit

Permalink
API improvement for memory::ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbrq committed Oct 2, 2023
1 parent b6d1f0c commit b670e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cxxdes/misc/reference_counted.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct ptr {
return ptr_;
}

T const *operator->() const noexcept {
T *operator->() const noexcept {
return ptr_;
}

Expand Down Expand Up @@ -164,7 +164,7 @@ struct ptr {
return { dynamic_cast<U const *>(ptr_) };
}

memory::ptr<const T> constcast() const noexcept {
memory::ptr<const T> as_const() const noexcept {
return { (const T *) ptr_ };
}

Expand Down

0 comments on commit b670e9e

Please sign in to comment.