public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paolo dot carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/32618] std::vector calls uneccessary constructors instead of inplace construction of first object Date: Fri, 08 Jan 2010 15:42:00 -0000 [thread overview] Message-ID: <20100108154211.23200.qmail@sourceware.org> (raw) In-Reply-To: <bug-32618-11420@http.gcc.gnu.org/bugzilla/> ------- 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
next prev parent reply other threads:[~2010-01-08 15:42 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-04 0:46 [Bug libstdc++/32618] New: " oliver at kfs dot org 2007-07-04 0:52 ` [Bug libstdc++/32618] " pinskia at gcc dot gnu dot org 2007-07-04 1:03 ` pcarlini at suse dot de 2007-07-04 4:27 ` oliver at kfs dot org 2007-07-04 4:34 ` pinskia at gcc dot gnu dot org 2007-07-04 5:45 ` oliver at kfs dot org 2007-11-28 0:57 ` pcarlini at suse dot de 2008-01-02 20:37 ` pcarlini at suse dot de 2009-12-02 0:01 ` paolo dot carlini at oracle dot com 2010-01-08 15:42 ` paolo dot carlini at oracle dot com [this message] 2010-06-16 11:04 ` paolo dot carlini at oracle dot com 2010-06-18 18:08 ` paolo at gcc dot gnu dot org 2010-06-18 18:22 ` paolo dot carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100108154211.23200.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).