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.
1 parent 1a95ab1 commit 8b3eaefCopy full SHA for 8b3eaef
include/cpp2util.h
@@ -2102,7 +2102,8 @@ constexpr auto is( X const& x ) -> bool {
2102
if (!x.has_value()) {
2103
return std::same_as<T, empty>;
2104
}
2105
- return std::same_as<T, typename X::value_type>;
+ return std::same_as<T, typename X::value_type>
2106
+ || std::derived_from<std::remove_pointer_t<typename X::value_type>, std::remove_pointer_t<T>>;
2107
2108
2109
// is Value
0 commit comments