Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #11546

Re: microsoft's pair(piecewise_construct_t,...) constructor

From Miles Bader <miles@gnu.org>
Newsgroups comp.lang.c++
Subject Re: microsoft's pair(piecewise_construct_t,...) constructor
Date 2011-11-17 08:19 +0900
Message-ID <871ut7mza0.fsf@catnip.gol.com> (permalink)
References <j9ea08$gsv$1@news-rocq.inria.fr> <079caf44-6a9e-4f89-93dc-495541770d79@hh9g2000vbb.googlegroups.com> <j9sfck$vie$1@news-rocq.inria.fr>

Show all headers | View raw


Marc <marc.glisse@gmail.com> writes:
> construct_from_tuple<A> directly initializes an A from x, and that A
> happens to be "first". The issue would be that it relies on
> copy-elision, and the compiler has a flag that disables copy-elision?
>
> If you think this is an issue, would you mind filing a bug report
> against libstdc++, which uses the same construction?

I can't comment on correctness here, but I'll note that libstdc++ can
get away with making more assumptions about the compiler's behavior
than (portable) user code, because libstdc++ is developed and
distributed along with the compiler...

-Miles

-- 
Patience, n. A minor form of despair, disguised as a virtue.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

microsoft's pair(piecewise_construct_t,...) constructor Marc <marc.glisse@gmail.com> - 2011-11-09 16:33 +0000
  Re: microsoft's pair(piecewise_construct_t,...) constructor SG <s.gesemann@gmail.com> - 2011-11-14 05:50 -0800
    Re: microsoft's pair(piecewise_construct_t,...) constructor Marc <marc.glisse@gmail.com> - 2011-11-15 01:31 +0000
      Re: microsoft's pair(piecewise_construct_t,...) constructor Miles Bader <miles@gnu.org> - 2011-11-17 08:19 +0900

csiph-web