]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Do not use _GLIBCXX_MAKE_MOVE_ITERATOR for C++17
authorJonathan Wakely <jwakely@redhat.com>
Mon, 15 Sep 2025 13:49:13 +0000 (14:49 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 16 Sep 2025 09:57:36 +0000 (10:57 +0100)
commit0810be83c1a9c6789920fcb0a4d98a3ddb64dd74
tree304c8af39513785ad53c745d66ce660f1f90e339
parent0067696c6777f4917a262b7dadefa7fd110de26e
libstdc++: Do not use _GLIBCXX_MAKE_MOVE_ITERATOR for C++17

The _GLIBCXX_MAKE_MOVE_ITERATOR macro is needed for code that needs to
compile as C++98, where it just produces the original iterator. In
std::uninitialized_move and std::uninitialized_move_n we can just call
std::make_move_iterator directly.

libstdc++-v3/ChangeLog:

* include/bits/stl_uninitialized.h (uninitialized_move)
(uninitialized_move_n): Replace _GLIBCXX_MAKE_MOVE_ITERATOR with
std::make_move_iterator.

Reviewed-by: Patrick Palka <ppalka@redhat.com>
libstdc++-v3/include/bits/stl_uninitialized.h