From 6b5addba9face0a6403e66e7db2aa94d87387f61 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 15 Jun 2019 18:17:17 +0900 Subject: [PATCH] fix loop algorithms --- sprout/utility/until_loop.hpp | 2 +- sprout/utility/while_loop.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } //