r/cpp • • 4d ago

Pattern Matching for C++29

https://mpark.github.io/programming/2026/11/30/pattern-matching-for-cpp29/
247 Upvotes

105 comments sorted by

View all comments

Show parent comment

2

u/Minimonium 4d ago

Why would it prevent the warning? Case _ for all intents and purposes sounds like "default" to me.

4

u/mcypark 3d ago

Why would it prevent the warning?

I described in more detail in this comment.

Case _ for all intents and purposes sounds like "default" to me.

Yeah, this is exactly my experience trying to explain this hypothetical difference to folks.

1

u/foonathan 3d ago

Because we could specifically design it to prevent the warning.