1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-07-02 14:04:09 +00:00

[sprout.array] support for C++14 constexpr

This commit is contained in:
bolero-MURAKAMI 2013-10-26 00:32:36 +09:00
parent 227e7789ec
commit c40b33067e
34 changed files with 87 additions and 70 deletions

View file

@ -19,7 +19,7 @@ namespace sprout {
inline SPROUT_CXX14_CONSTEXPR ForwardIterator2
swap_ranges(ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2) {
while (first1 != last1) {
sprout::iter_swap(*first1++, *first2++);
sprout::iter_swap(first1++, first2++);
}
return first2;
}