We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c511638 + b790f6d commit bd218d0Copy full SHA for bd218d0
include/cpp2util.h
@@ -539,7 +539,7 @@ auto is( X const& x ) -> bool {
539
template< typename C, typename X >
540
requires (std::is_base_of_v<X, C> && !std::is_same_v<C,X>)
541
auto is( X const* x ) -> bool {
542
- return dynamic_cast<C const&>(x) != nullptr;
+ return dynamic_cast<C const*>(x) != nullptr;
543
}
544
545
0 commit comments