public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally
@ 2013-05-14 11:39 redi at gcc dot gnu.org
2014-03-21 17:52 ` [Bug libstdc++/57272] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2013-05-14 11:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
Bug ID: 57272
Summary: node-based containers don't use allocator's pointer
type internally
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: redi at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Container nodes are linked together by built-in pointers, but they should use
the allocator's pointer type instead. Currently I think only std::vector does
this correctly.
This is quite an invasive change and not worth implementing until C++11
allocators are supported, which is only true of forward_list and unordered
containers so far.
I have a patch in progress for forward_list. The change requires replacing
every _Node* with a _Node_ptr typedef and then using indirection through
std::pointer_traits to convert between e.g. _Node_ptr and _Node_base_ptr.
I need to do some measurement to see if the indirection has a cost and if so
then use partial specialization to avoid all the indirections when the pointer
is a built-in type.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/57272] node-based containers don't use allocator's pointer type internally
2013-05-14 11:39 [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally redi at gcc dot gnu.org
@ 2014-03-21 17:52 ` redi at gcc dot gnu.org
2014-05-07 18:46 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-21 17:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-03-21
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/57272] node-based containers don't use allocator's pointer type internally
2013-05-14 11:39 [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally redi at gcc dot gnu.org
2014-03-21 17:52 ` [Bug libstdc++/57272] " redi at gcc dot gnu.org
@ 2014-05-07 18:46 ` redi at gcc dot gnu.org
2014-05-07 18:47 ` redi at gcc dot gnu.org
2021-04-19 10:40 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-07 18:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bkoz at gcc dot gnu.org
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 21771 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/57272] node-based containers don't use allocator's pointer type internally
2013-05-14 11:39 [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally redi at gcc dot gnu.org
2014-03-21 17:52 ` [Bug libstdc++/57272] " redi at gcc dot gnu.org
2014-05-07 18:46 ` redi at gcc dot gnu.org
@ 2014-05-07 18:47 ` redi at gcc dot gnu.org
2021-04-19 10:40 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-07 18:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
>From Bug 21771: http://gcc.gnu.org/ml/libstdc++/2005-05/msg00294.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/57272] node-based containers don't use allocator's pointer type internally
2013-05-14 11:39 [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally redi at gcc dot gnu.org
` (2 preceding siblings ...)
2014-05-07 18:47 ` redi at gcc dot gnu.org
@ 2021-04-19 10:40 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2021-04-19 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|redi at gcc dot gnu.org |unassigned at gcc dot gnu.org
Status|ASSIGNED |NEW
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-04-19 10:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 11:39 [Bug libstdc++/57272] New: node-based containers don't use allocator's pointer type internally redi at gcc dot gnu.org
2014-03-21 17:52 ` [Bug libstdc++/57272] " redi at gcc dot gnu.org
2014-05-07 18:46 ` redi at gcc dot gnu.org
2014-05-07 18:47 ` redi at gcc dot gnu.org
2021-04-19 10:40 ` 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).