r/cpp • • Apr 19 '20

Default function arguments are the devil

https://quuxplusone.github.io/blog/2020/04/18/default-function-arguments-are-the-devil/
90 Upvotes

149 comments sorted by

View all comments

Show parent comment

5

u/Ameisen vemips, avr, rendering, systems Apr 19 '20

You can use bool as the type of an enum as well.

2

u/matthieum Apr 19 '20

That's a good point, maybe I should do that for such flags.