You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The 'as' cast functions are <To, From> so use that order here
1104
1109
// If it's confusing, we can switch this to <From, To>
1105
1110
template< typename To, typename From >
@@ -1786,34 +1791,80 @@ CPP2_FORCE_INLINE constexpr auto cmp_mixed_signedness_check() -> void
1786
1791
// static_assert to reject the comparison is the right way to go.
1787
1792
static_assert(
1788
1793
program_violates_type_safety_guarantee<T, U>,
1789
-
"mixed signed/unsigned comparison is unsafe - prefer using .ssize() instead of .size(), consider using std::cmp_less instead, or consider explicitly casting one of the values to change signedness by using 'as' or 'cpp2::unsafe_narrow'");
1794
+
"mixed signed/unsigned comparison is unsafe - prefer using .ssize() instead of .size(), consider using std::cmp_less instead, or consider explicitly casting one of the values to change signedness by using 'as' or 'cpp2::unsafe_narrow'"
In file included from pure2-bugfix-for-requires-clause-in-forward-declaration.cpp:7:
12
12
../../../include/cpp2util.h:10005:47: error: static assertion failed: GCC 11 or higher is required to support variables and type-scope functions that have a 'requires' clause. This includes a type-scope 'forward' parameter of non-wildcard type, such as 'func: (this, forward s: std::string)', which relies on being able to add a 'requires' clause - in that case, use 'forward s: _' instead if you need the result to compile with GCC 10.
13
13
pure2-bugfix-for-requires-clause-in-forward-declaration.cpp2:4:1: note: in expansion of macro ‘CPP2_REQUIRES_’
0 commit comments