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:
parent
227e7789ec
commit
c40b33067e
34 changed files with 87 additions and 70 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue