Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
4.1.3
-
None
-
None
-
all
-
Usability
Description
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
};
// 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