From a954fd7d5139a14a5d72c655641544bd3f772a16 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Wed, 6 Nov 2013 00:04:06 +0900 Subject: [PATCH] fix: partition_copy parameter --- sprout/algorithm/cxx14/partition_copy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sprout/algorithm/cxx14/partition_copy.hpp b/sprout/algorithm/cxx14/partition_copy.hpp index 93f159ef..01e0ec29 100644 --- a/sprout/algorithm/cxx14/partition_copy.hpp +++ b/sprout/algorithm/cxx14/partition_copy.hpp @@ -19,7 +19,7 @@ namespace sprout { inline SPROUT_CXX14_CONSTEXPR sprout::pair partition_copy(InputIterator first, InputIterator last, OutputIterator1 out_true, OutputIterator2 out_false, Predicate pred) { for (; first != last; ++first) { - if (p(*first)) { + if (pred(*first)) { *out_true++ = *first; } else { *out_false++ = *first;