From ee008e8a77abf4e7a7b1199929d4c7542fd20b80 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Wed, 11 Mar 2015 20:40:19 +0900 Subject: [PATCH] fix SPROUT_CXX14_CONSTEXPR specifier --- sprout/algorithm/partition_point.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sprout/algorithm/partition_point.hpp b/sprout/algorithm/partition_point.hpp index 0cc15bb8..b673f850 100644 --- a/sprout/algorithm/partition_point.hpp +++ b/sprout/algorithm/partition_point.hpp @@ -51,12 +51,12 @@ namespace sprout { // 0 // template - inline SPROUT_CONSTEXPR ForwardIterator + inline SPROUT_CXX14_CONSTEXPR ForwardIterator partition_point(ForwardIterator first, ForwardIterator last, Predicate pred) { typedef typename std::iterator_traits::difference_type difference_type; for (difference_type len = sprout::distance(first, last); len != 0; ) { - const difference_type half = len / 2; - const ForwardIterator mid = sprout::next(first, half); + difference_type const half = len / 2; + ForwardIterator const mid = sprout::next(first, half); if (pred(*mid)) { first = sprout::next(mid); len -= half + 1;