We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e6a58 commit a5b1db1Copy full SHA for a5b1db1
include/mpark/patterns/match.hpp
@@ -390,7 +390,7 @@ namespace mpark::patterns {
390
auto insert(
391
lib::list<lib::indexed_type<Q, std::index_sequence<Is...>>, Tail...>) {
392
using Head = lib::indexed_type<Q, std::index_sequence<Is...>>;
393
- if constexpr (P == -1) {
+ if constexpr (P == static_cast<std::size_t>(-1)) {
394
return lib::
395
list<Head, Tail..., lib::indexed_type<P, std::index_sequence<I>>>{};
396
} else if constexpr (P == Q) {
0 commit comments