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;