There was an error while loading. Please reload this page.
1 parent fd0c99d commit b790f6dCopy full SHA for b790f6d
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