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 @@ -1629,13 +1629,13 @@ constexpr auto is( X&& ) {
1629
1629
// Types
1630
1630
//
1631
1631
template < typename C, typename X >
1632
- auto is ( X const & x ) -> bool {
1632
+ constexpr auto is ( X const & x ) -> auto {
1633
1633
if constexpr (
1634
1634
std::is_same_v<C, X>
1635
1635
|| std::is_base_of_v<C, X>
1636
1636
)
1637
1637
{
1638
- return true ;
1638
+ return std::true_type{} ;
1639
1639
}
1640
1640
else if constexpr (
1641
1641
std::is_polymorphic_v<C>
@@ -1660,12 +1660,12 @@ auto is( X const& x ) -> bool {
1660
1660
)
1661
1661
{
1662
1662
if (x != nullptr ) {
1663
- return is<std::remove_pointer_t <C>>(*x);
1663
+ return bool { is<std::remove_pointer_t <C>>(*x)} ;
1664
1664
}
1665
1665
return false ;
1666
1666
}
1667
1667
else {
1668
- return false ;
1668
+ return std::false_type{} ;
1669
1669
}
1670
1670
}
1671
1671
You can’t perform that action at this time.
0 commit comments