[GOLD] Got_offset_list: addend field
Cary Coutant
ccoutant@gmail.com
Fri Sep 3 18:24:12 GMT 2021
> > > As per the recommendation in
> > > https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-default-args
> > > the changes to symtab.h Symbol methods could be done with what looks
> > > like a good use of default arguments but they seem to be against the
> > > gold maintainers' coding practice. So instead we get more overloads.
> >
> > For the record, I've got nothing against default parameter values, as
> > long as they're obvious default values that shouldn't ever need to be
> > changed. I'm not sure what Ian's position was,
>
> There's this:
> https://sourceware.org/pipermail/binutils/2010-October/069026.html
Ah, good find!
I think I'd take exception to that, as introducing a new version of
the function with the same name is exactly what adding an overload
does.
-cary
More information about the Binutils
mailing list