Skip to content

Commit fb12b8e

Browse files
committed
Remove is() overload for polymorphic to polymorfic_pointer
1 parent 6cee182 commit fb12b8e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/cpp2util.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,10 +1406,6 @@ constexpr auto is( X const& x ) -> bool {
14061406
return Dynamic_cast<C const*>(&x) != nullptr;
14071407
}
14081408

1409-
template< polymorphic C, polymorphic_pointer X >
1410-
requires std::derived_from<pointee_t<X>, C>
1411-
constexpr auto is( X const& ) -> std::true_type { return {}; }
1412-
14131409
template< polymorphic_pointer C, polymorphic_pointer X >
14141410
requires std::derived_from<pointee_t<X>, pointee_t<C>>
14151411
constexpr auto is( X const& ) -> std::true_type { return {}; }

0 commit comments

Comments
 (0)