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] |
I have attached a patch for include/bits/stl_algobase.h, to overload the definitions of std::min and std::max applied to numeric types, so that they do not produce unnecessary lvalue references (and corresponding unnecessary memory references!) when called. This patch was the point of the extensive testing in the patch to min_max.cc; since the code is no longer common, each version needs its own tests. Nathan Myers ncm-nospam@cantrip.org
Attachment:
stl_algobase.h.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |