r/cpp • u/anonymous23874 • 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
r/cpp • u/anonymous23874 • Apr 19 '20
View all comments
8
u/Dragdu Apr 19 '20
You can make source location work with variadics by liberal appli ation of CTAD, or, of course, macros.
I also find the boolean tarpit argument extremely dubious: the best way to deal with it is to leave the boolean tarpit, not avoid default args.