Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-08-23 Thread Jonathan Wakely
On 23/08/16 11:16 +0100, Jonathan Wakely wrote: On 16/07/16 14:55 +0200, Daniel Krügler wrote: Since I made a similar (unintentional) omission recently myself: Shouldn't you touch std::__debug::array as well? What about other functions from std::__debug? Yes, I'll fix those shortly. Here's

Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-08-23 Thread Jonathan Wakely
On 16/07/16 14:55 +0200, Daniel Krügler wrote: 2016-07-16 1:09 GMT+02:00 Jonathan Wakely : This patch implements http://wg21.link/p0031 which adds constexpr to most operations on std::reverse_iterator, std::move_iterator, std::array, as well as std::advance, std::distance,

Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-07-16 Thread Ville Voutilainen
On 16 July 2016 at 18:38, Ville Voutilainen wrote: > I think it's reasonable to make the functions constexpr even when the standard > doesn't allow it, and if c++17 allows them to be constexpr, make the functions > constexpr in other standard modes as well. We could

Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-07-16 Thread Ville Voutilainen
> This patch implements http://wg21.link/p0031 which adds constexpr to > most operations on std::reverse_iterator, std::move_iterator, > std::array, as well as std::advance, std::distance, and the > range-access functions std::begin, std::rbegin etc. > > Strictly speaking, those functions should

Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-07-16 Thread Daniel Krügler
2016-07-16 1:09 GMT+02:00 Jonathan Wakely : > This patch implements http://wg21.link/p0031 which adds constexpr to > most operations on std::reverse_iterator, std::move_iterator, > std::array, as well as std::advance, std::distance, and the > range-access functions std::begin,

Re: [PATCH] Add constexpr to iterator adaptors, array and range access

2016-07-15 Thread Oleg Endo
On Sat, 2016-07-16 at 00:09 +0100, Jonathan Wakely wrote: > This patch implements http://wg21.link/p0031 which adds constexpr to > most operations on std::reverse_iterator, std::move_iterator, > std::array, as well as std::advance, std::distance, and the > range-access functions std::begin,

[PATCH] Add constexpr to iterator adaptors, array and range access

2016-07-15 Thread Jonathan Wakely
This patch implements http://wg21.link/p0031 which adds constexpr to most operations on std::reverse_iterator, std::move_iterator, std::array, as well as std::advance, std::distance, and the range-access functions std::begin, std::rbegin etc. Strictly speaking, those functions should only be