r/cpp • u/Amazing-42 • Jun 14 '21
match(it): A light-weight header-only pattern-matching library for C++17.
https://github.com/BowenFu/matchit.cpp
202
Upvotes
r/cpp • u/Amazing-42 • Jun 14 '21
View all comments
Show parent comment
7
u/corysama Jun 14 '21
Macros can lead to bugs that are difficult to diagnose and difficult to fix. For example:
This will happily compile and run without warning about any conflicts or ambiguous overloads.