File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1602,13 +1602,13 @@ constexpr auto is( X&& ) {
1602
1602
// Types
1603
1603
//
1604
1604
template < typename C, typename X >
1605
- auto is ( X const & x ) -> bool {
1605
+ constexpr auto is ( X const & x ) -> auto {
1606
1606
if constexpr (
1607
1607
std::is_same_v<C, X>
1608
1608
|| std::is_base_of_v<C, X>
1609
1609
)
1610
1610
{
1611
- return true ;
1611
+ return std::true_type{} ;
1612
1612
}
1613
1613
else if constexpr (
1614
1614
std::is_polymorphic_v<C>
@@ -1633,12 +1633,12 @@ auto is( X const& x ) -> bool {
1633
1633
)
1634
1634
{
1635
1635
if (x != nullptr ) {
1636
- return is<std::remove_pointer_t <C>>(*x);
1636
+ return bool { is<std::remove_pointer_t <C>>(*x)} ;
1637
1637
}
1638
1638
return false ;
1639
1639
}
1640
1640
else {
1641
- return false ;
1641
+ return std::false_type{} ;
1642
1642
}
1643
1643
}
1644
1644
You can’t perform that action at this time.
0 commit comments