Skip to content

Commit

Permalink
Replace with dynamic cast
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes committed Mar 6, 2024
1 parent cb7a994 commit 658d7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xeus/xeus_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace xeus
template <class T>
T& xcontext::get_wrapped_context()
{
auto* impl = static_cast<xcontext_impl<T>*>(this);
auto* impl = dynamic_cast<xcontext_impl<T>*>(this);
return impl->m_context;
}

Expand Down

0 comments on commit 658d7b9

Please sign in to comment.