This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] 25_algo merge/flatten from libstdcxx_so_7
> >Actually.... this moves over the rvalrefs/moveable testsuite
> >additions from libstdcxx_so_7-branch to mainline. Chris, it would be
> >great if you could look this over, but I'll assume it's ok if I've
> >not heard anything by Thursday.
> >
> >
> Actually, seems a very good idea to me.
OK, well then. This is in, with the proviso that Chris can tweak the
mainline code if I messed up anything.
With this in, merges or diffs from libstdcxx_so_7-branch to mainline
should be able to ignore testsuite files.
> >This makes all moveable.cc tests dg-require-rvalrefs, which is a bit
> >of a hokey dependency test for the library components, ie move. This
> >seems simplest.
> >
> >Some slight changes to paths, __gnu_cxx::__make_move_iterator to
> >std::make_move_iterator (and #include <iterator> if necessary),
> >__gnu_cxx::__move to std::move (and #include <utility> if necessary),
> >etc.
> >
> >
> I can implement std::move_iterator and std::make_move_iterator in
> <iterator>, completing my previous (bit of) work on std::move &co in
> <utility>...
Sounds cool. FYI so_7's include/bits/moveable.h has most of these two,
although I'm not quite sure what's up with this code...
Also it looks like there's a move_iterator implementation here:
http://mndfck.org/~pedro.lamarao/projects/c++0x/libstdc++-v3.patch
(as well as a unique_ptr implementation...)
-benjamin