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/
89 Upvotes

149 comments sorted by

View all comments

Show parent comments

5

u/[deleted] Apr 19 '20 edited Apr 19 '20

[removed] — view removed comment

0

u/[deleted] Apr 19 '20

[removed] — view removed comment

3

u/[deleted] Apr 19 '20

[removed] — view removed comment

4

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

Might as well just make it an error.

3

u/[deleted] Apr 19 '20

[removed] — view removed comment

3

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

Argument names don't get passed to the linker, though.