Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(314)

Issue 4384043: [patch] Import iota and is_sorted from std to __gnu_cxx in C++0x mode. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Jeffrey Yasskin
Modified:
13 years, 8 months ago
Reviewers:
Jeffrey Yasskin (google), libstdc++, pcarlini
CC:
gcc-patches_gcc.gnu.org
Visibility:
Public.

Description

In C++0x mode, import iota and is_sorted from namespace std into namespace __gnu_cxx to avoid ambiguous call errors. copy_n would be a good candidate for this too, except it was standardized with a different return type. Tested: `make -k check-c++` on x86_64-unknown-linux-gnu. libstdc++-v3/ChangeLog: 2011-04-06 Jeffrey Yasskin <jyasskin@google.com> * include/ext/algorithm (is_sorted): In C++0x mode import from namespace std. * include/ext/numeric (iota): In C++0x mode import from namespace std. * testsuite/ext/is_sorted/cxx0x.cc: New. * testsuite/ext/iota/cxx0x.cc: New.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -1 line) Patch
M libstdc++-v3/include/ext/algorithm View 2 chunks +4 lines, -0 lines 0 comments Download
M libstdc++-v3/include/ext/numeric View 2 chunks +4 lines, -1 line 0 comments Download
A libstdc++-v3/testsuite/ext/iota/cxx0x.cc View 1 chunk +28 lines, -0 lines 0 comments Download
A libstdc++-v3/testsuite/ext/is_sorted/cxx0x.cc View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 2
Jeffrey Yasskin (google)
In C++0x mode, import iota and is_sorted from namespace std into namespace __gnu_cxx to avoid ...
13 years, 8 months ago (2011-04-07 00:06:10 UTC) #1
pcarlini_gmail.com
13 years, 8 months ago (2011-04-07 00:31:29 UTC) #2
Hi,

> I think this is a candidate to backport to libstdc++-4.6.1.

Ok mainline and 4_6-branch if testing passes.

Thanks,
Paolo
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b