public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/26133]  New: unique_copy requires assignability when using output iterators
@ 2006-02-06 15:34 squell at alumina dot nl
  2006-02-06 15:36 ` [Bug libstdc++/26133] " squell at alumina dot nl
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: squell at alumina dot nl @ 2006-02-06 15:34 UTC (permalink / raw)
  To: gcc-bugs

unique_copy is overloaded on forward- and output_iterators for the result
iterator; the output_iterator version requires Assignability on the input's
value_type, which isn't required by the resolution to DR #241:

http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241

I'll attach a demonstration, which compiles on at least one other
implementation. When using only input AND only output iterators,
implementations must keep a temporary copy somewhere; is the standard implying
that implementations use placement new for that?


-- 
           Summary: unique_copy requires assignability when using output
                    iterators
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: squell at alumina dot nl


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-08 21:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 15:34 [Bug libstdc++/26133] New: unique_copy requires assignability when using output iterators squell at alumina dot nl
2006-02-06 15:36 ` [Bug libstdc++/26133] " squell at alumina dot nl
2006-02-08 10:09 ` pcarlini at suse dot de
2006-02-08 21:52 ` paolo at gcc dot gnu dot org
2006-02-08 21:53 ` pcarlini at suse dot de

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).