This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Idea for more delegations in <algorithm>


Chris Jefferson wrote:

| Or, for some reason, we have troubles with this too? :(

Unless I'm going mad (possible), default parameters are inserted and
passed by the compiler (at least on x86), so this will in fact be worse,
because that "0" will always be created and passed by the compiler
(because it might be needed for all it knows) whereas the empty classes
might eventually be optimised away with compiler improvements.

I see, I was afraid that something like that could happen, in principle (have never looked myself to the actual way defaults are compiled)


Thanks...
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]