diff --git a/sprout/utility/until_loop.hpp b/sprout/utility/until_loop.hpp index e0b15b36..e1306844 100644 --- a/sprout/utility/until_loop.hpp +++ b/sprout/utility/until_loop.hpp @@ -57,7 +57,7 @@ namespace sprout { inline SPROUT_CONSTEXPR T until_loop(T init, Predicate pred, UnaryOperation unary_op) { typedef sprout::pair type; - return sprout::detail::until_loop_impl(type(init, false), pred, unary_op, 1).second; + return sprout::detail::until_loop_impl(type(init, false), pred, unary_op, 1).first; } // diff --git a/sprout/utility/while_loop.hpp b/sprout/utility/while_loop.hpp index cd1b7996..8957cc42 100644 --- a/sprout/utility/while_loop.hpp +++ b/sprout/utility/while_loop.hpp @@ -57,7 +57,7 @@ namespace sprout { inline SPROUT_CONSTEXPR T while_loop(T init, Predicate pred, UnaryOperation unary_op) { typedef sprout::pair type; - return sprout::detail::while_loop_impl(type(init, false), pred, unary_op, 1).second; + return sprout::detail::while_loop_impl(type(init, false), pred, unary_op, 1).first; } //