Re: Improve relocation

2018-11-22 Thread Marc Glisse
On Thu, 22 Nov 2018, Jonathan Wakely wrote: "For __relocate_a_1, I should also test if copying, ++ and != are noexcept, but I wanted to ask first because there might be restrictions on what iterators are allowed to do, even if I didn't see them." I decided to postpone thinking about that :-)

Re: Improve relocation

2018-11-22 Thread Jonathan Wakely
On 22/11/18 19:10 +0100, Marc Glisse wrote: On Thu, 22 Nov 2018, Jonathan Wakely wrote: On 26/10/18 14:02 +0200, Marc Glisse wrote: Index: libstdc++-v3/include/bits/stl_iterator.h === --- libstdc++-v3/include/bits/stl_iterator.h

Re: Improve relocation

2018-11-22 Thread Marc Glisse
On Thu, 22 Nov 2018, Jonathan Wakely wrote: On 26/10/18 14:02 +0200, Marc Glisse wrote: Index: libstdc++-v3/include/bits/stl_iterator.h === --- libstdc++-v3/include/bits/stl_iterator.h(revision 265522) +++ libstdc++-v3/include/

Re: Improve relocation

2018-11-22 Thread Jonathan Wakely
On 26/10/18 14:02 +0200, Marc Glisse wrote: Index: libstdc++-v3/include/bits/stl_iterator.h === --- libstdc++-v3/include/bits/stl_iterator.h(revision 265522) +++ libstdc++-v3/include/bits/stl_iterator.h(working copy) @@ -59,2

Re: Improve relocation

2018-11-21 Thread Marc Glisse
ping? On Fri, 26 Oct 2018, Marc Glisse wrote: Hello, here are some tweaks so that I can usefully mark deque as trivially relocatable. It includes more noexcept(auto) madness. For __relocate_a_1, I should also test if copying, ++ and != are noexcept, but I wanted to ask first because there m

Improve relocation

2018-10-26 Thread Marc Glisse
Hello, here are some tweaks so that I can usefully mark deque as trivially relocatable. It includes more noexcept(auto) madness. For __relocate_a_1, I should also test if copying, ++ and != are noexcept, but I wanted to ask first because there might be restrictions on what iterators are allowe