stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-171) std::unique_copy() requires CopyConstructible and Assignable
Date Sun, 03 Jun 2007 16:24:16 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor updated STDCXX-171:
--------------------------------

    Summary: std::unique_copy() requires CopyConstructible and Assignable  (was: unique_copy
algorithm requires CopyConstructible and Assignable)

> std::unique_copy() requires CopyConstructible and Assignable
> ------------------------------------------------------------
>
>                 Key: STDCXX-171
>                 URL: https://issues.apache.org/jira/browse/STDCXX-171
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 25. Algorithms
>    Affects Versions: 4.1.3
>         Environment: all
>            Reporter: Anton Pevtsov
>            Priority: Minor
>
> The following test fails to compile:
> #include <algorithm>
> #include <iterator>
> #include <iostream>
> struct no_assign {
>     int const x;
>     no_assign() : x(23) { }
>     operator int() const { return x; }
> };
>  // this program should output a single "23".
> int main()
> {
>     no_assign in[4];
>     std::unique_copy(in, in+4, std::ostream_iterator<int>(std::cout, "\n"));
> }
> The unique_copy standard requirements are still discussed:
> http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241
> http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#538

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message