This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++ PATH] tr1::bind support
On Mar 20, 2005, at 7:01 PM, Giovanni Bajo wrote:
Douglas Gregor <doug.gregor@gmail.com> wrote:
The attached patch introduces support for tr1::bind for libstdc++-v3
Nice, thanks!
One question: did you verify that GCC is able to produce nicely
optimized code
for bind and function? If not, we should really file some enhancement
PRs in
Bugzilla and have the tree-ssa experts have a look at those. IIRC,
bind should
be zero overhead, and function should be just one indirect call.
I did not verify that GCC produces well-optimized code for either bind
or function, but this would be a great idea. And you are correct, that
with function objects bind should require no overhead and function
should involve one call through a function pointer.
Doug