This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/32618] std::vector calls uneccessary constructors instead of inplace construction of first object



------- Comment #9 from paolo dot carlini at oracle dot com  2010-01-08 15:42 -------
Note: the same problem with the DefaultConstructible requirement affects for
example the new constructor vector(size_type). Thinking more about these issues
I'm wondering whether in N3000 std::vector & co are still supposed to be
explicitly instantiable for non-DefaultConstructible types - which would
require a quite boring dispatching and base-class dances for the whole class
for the sake of a few members, now that Concepts are gone - or not, or maybe
just as QoI. Does anybody have an idea? Maybe not, maybe is not supposed to,
otherwise, N2983 would not add the has_default_constructor trait as-if it was
not necessary before...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwakely dot gcc at gmail dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32618


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