Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Mar 1, 2024
1 parent 147da53 commit ae82227
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ template <class Derived, bc::if_base_of<Base, Derived>>
std::shared_ptr<Derived> enable_shared_from_base<Base>::
shared_from_base() NOEXCEPT
{
// Instance (not just type) must be upcastable to Derived.
// Instance must be downcastable to Derived.
return std::static_pointer_cast<Derived>(this->shared_from_this());
}

Expand Down

0 comments on commit ae82227

Please sign in to comment.