|
116 | 116 | // in our -pure-cpp2 "import std;" simulation mode... if you need this,
|
117 | 117 | // use mixed mode (not -pure-cpp2) and #include all the headers you need
|
118 | 118 | // including this one
|
119 |
| - // |
| 119 | + // |
120 | 120 | // #include <execution>
|
121 | 121 | #ifdef __cpp_lib_expected
|
122 | 122 | #include <expected>
|
@@ -525,7 +525,7 @@ template<typename T>
|
525 | 525 | auto Typeid() -> decltype(auto) {
|
526 | 526 | #ifdef CPP2_NO_RTTI
|
527 | 527 | Type.expects(
|
528 |
| - !"'any' dynamic casting is disabled with -fno-rtti", // more likely to appear on console |
| 528 | + !"'any' dynamic casting is disabled with -fno-rtti", // more likely to appear on console |
529 | 529 | "'any' dynamic casting is disabled with -fno-rtti" // make message available to hooked handlers
|
530 | 530 | );
|
531 | 531 | #else
|
@@ -901,7 +901,7 @@ inline auto to_string(std::string const& s) -> std::string const&
|
901 | 901 |
|
902 | 902 | template<typename T>
|
903 | 903 | inline auto to_string(T const& sv) -> std::string
|
904 |
| - requires (std::is_convertible_v<T, std::string_view> |
| 904 | + requires (std::is_convertible_v<T, std::string_view> |
905 | 905 | && !std::is_convertible_v<T, const char*>)
|
906 | 906 | {
|
907 | 907 | return std::string{sv};
|
@@ -1041,17 +1041,17 @@ auto is( X const& ) -> bool {
|
1041 | 1041 |
|
1042 | 1042 | template< typename C, typename X >
|
1043 | 1043 | requires (
|
1044 |
| - ( std::is_base_of_v<X, C> || |
1045 |
| - ( std::is_polymorphic_v<C> && std::is_polymorphic_v<X>) |
| 1044 | + ( std::is_base_of_v<X, C> || |
| 1045 | + ( std::is_polymorphic_v<C> && std::is_polymorphic_v<X>) |
1046 | 1046 | ) && !std::is_same_v<C,X>)
|
1047 | 1047 | auto is( X const& x ) -> bool {
|
1048 | 1048 | return Dynamic_cast<C const*>(&x) != nullptr;
|
1049 | 1049 | }
|
1050 | 1050 |
|
1051 | 1051 | template< typename C, typename X >
|
1052 | 1052 | requires (
|
1053 |
| - ( std::is_base_of_v<X, C> || |
1054 |
| - ( std::is_polymorphic_v<C> && std::is_polymorphic_v<X>) |
| 1053 | + ( std::is_base_of_v<X, C> || |
| 1054 | + ( std::is_polymorphic_v<C> && std::is_polymorphic_v<X>) |
1055 | 1055 | ) && !std::is_same_v<C,X>)
|
1056 | 1056 | auto is( X const* x ) -> bool {
|
1057 | 1057 | return Dynamic_cast<C const*>(x) != nullptr;
|
@@ -1682,7 +1682,7 @@ constexpr auto unsafe_narrow( X&& x ) noexcept -> decltype(auto)
|
1682 | 1682 | // Returns a function object that takes a 'value' of the same type as
|
1683 | 1683 | // 'flags', and evaluates to true if and only if 'value' has set all of
|
1684 | 1684 | // the bits set in 'flags'
|
1685 |
| -// |
| 1685 | +// |
1686 | 1686 | //-----------------------------------------------------------------------
|
1687 | 1687 | //
|
1688 | 1688 | template <typename T>
|
|
0 commit comments