@@ -433,22 +433,22 @@ template<typename T>
433
433
auto Typeid () -> decltype(auto ) {
434
434
#ifdef CPP2_NO_RTTI
435
435
Type.expects (
436
- !" 'any' dynamic casting is disabled with -fno-rtti" , // more likely to appear on console
436
+ !" 'any' dynamic casting is disabled with -fno-rtti" , // more likely to appear on console
437
437
" 'any' dynamic casting is disabled with -fno-rtti" // make message available to hooked handlers
438
438
);
439
439
#else
440
440
return typeid (T);
441
441
#endif
442
442
}
443
443
444
- // We don't need typeid(expr) yet -- uncomment this if/when we need it
444
+ // We don't need typeid(expr) yet -- uncomment this if/when we need it
445
445
// auto Typeid( [[maybe_unused]] auto&& x ) -> decltype(auto) {
446
- // #ifdef CPP2_DISABLE_RTTI
447
- // Type.expects(
448
- // !"<write appropriate error message here>"
449
- // );
446
+ // #ifdef CPP2_NO_RTTI
447
+ // Type.expects(
448
+ // !"<write appropriate error message here>"
449
+ // );
450
450
// #else
451
- // return typeid(CPP2_FORWARD(x));
451
+ // return typeid(CPP2_FORWARD(x));
452
452
// #endif
453
453
// }
454
454
@@ -1144,7 +1144,7 @@ auto as( std::variant<Ts...> const& x ) -> decltype(auto) {
1144
1144
template <typename T, typename X>
1145
1145
requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>)
1146
1146
constexpr auto is( X const & x ) -> bool
1147
- { return x.type () == typeid (T ); }
1147
+ { return x.type () == Typeid<T>( ); }
1148
1148
1149
1149
template <typename T, typename X>
1150
1150
requires (std::is_same_v<X,std::any> && std::is_same_v<T,empty>)
0 commit comments