public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/56551] New: A faster implementation of std::function
@ 2013-03-06 15:23 marton78 at gmail dot com
2013-03-06 16:24 ` [Bug libstdc++/56551] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marton78 at gmail dot com @ 2013-03-06 15:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
Bug #: 56551
Summary: A faster implementation of std::function
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: marton78@gmail.com
It would be great if the clever implementation of std::function presented on
the following page could find its way into libstdc++.
http://probablydance.com/2013/01/13/a-faster-implementation-of-stdfunction/
> The code is in the public domain (I want all library writers to start using it)
> and here is a download link: http://dl.dropbox.com/u/27990997/function.h
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/56551] A faster implementation of std::function
2013-03-06 15:23 [Bug libstdc++/56551] New: A faster implementation of std::function marton78 at gmail dot com
@ 2013-03-06 16:24 ` redi at gcc dot gnu.org
2013-03-09 23:17 ` malteskarupke at web dot de
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2013-03-06 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-03-06 16:24:20 UTC ---
I've only glanced at the code but it's good to see you support passing an
Allocator to the constructor (though it should use std::allocator_traits to
support C++11 allocators)
I was thinking of making some big changes to our std::function for GCC 4.9 in
order to support custom allocators.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/56551] A faster implementation of std::function
2013-03-06 15:23 [Bug libstdc++/56551] New: A faster implementation of std::function marton78 at gmail dot com
2013-03-06 16:24 ` [Bug libstdc++/56551] " redi at gcc dot gnu.org
@ 2013-03-09 23:17 ` malteskarupke at web dot de
2022-09-07 11:59 ` redi at gcc dot gnu.org
2022-09-07 12:01 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: malteskarupke at web dot de @ 2013-03-09 23:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
malteskarupke at web dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |malteskarupke at web dot de
--- Comment #2 from malteskarupke at web dot de 2013-03-09 23:17:03 UTC ---
I've uploaded a new version that uses std::allocator_traits. It's behind the
same download link as before.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/56551] A faster implementation of std::function
2013-03-06 15:23 [Bug libstdc++/56551] New: A faster implementation of std::function marton78 at gmail dot com
2013-03-06 16:24 ` [Bug libstdc++/56551] " redi at gcc dot gnu.org
2013-03-09 23:17 ` malteskarupke at web dot de
@ 2022-09-07 11:59 ` redi at gcc dot gnu.org
2022-09-07 12:01 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-07 11:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rockeet at gmail dot com
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 106871 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/56551] A faster implementation of std::function
2013-03-06 15:23 [Bug libstdc++/56551] New: A faster implementation of std::function marton78 at gmail dot com
` (2 preceding siblings ...)
2022-09-07 11:59 ` redi at gcc dot gnu.org
@ 2022-09-07 12:01 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-07 12:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56551
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As I just wrote on the duplicate bug:
I've looked into this and I don't think it can be done without an ABI break.
Objects constructed in old code compiled by an older GCC would still have a
null pointer, so code compiled by a new GCC can't assume that the pointer is
never null.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-07 12:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 15:23 [Bug libstdc++/56551] New: A faster implementation of std::function marton78 at gmail dot com
2013-03-06 16:24 ` [Bug libstdc++/56551] " redi at gcc dot gnu.org
2013-03-09 23:17 ` malteskarupke at web dot de
2022-09-07 11:59 ` redi at gcc dot gnu.org
2022-09-07 12:01 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).