From 8274f34db498b02bff12277bac5416ea72e018cd Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Tue, 29 May 2018 23:09:43 +0900 Subject: [PATCH] fix swallow:wq --- sprout/utility/swallow.hpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/sprout/utility/swallow.hpp b/sprout/utility/swallow.hpp index 83ce2137..0db3fc91 100644 --- a/sprout/utility/swallow.hpp +++ b/sprout/utility/swallow.hpp @@ -18,8 +18,6 @@ namespace sprout { // // example: // swallow({(void)pack, 0}...); - // ((void)pack, ..., swallow); // right fold, since C++17 - // (swallow, ..., (void)pack); // left fold, since C++17 // struct swallow_t { public: @@ -30,16 +28,16 @@ namespace sprout { namespace { SPROUT_STATIC_CONSTEXPR sprout::swallow_t swallow = {}; } // anonymous-namespace - template - inline SPROUT_CONSTEXPR sprout::swallow_t - operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT { - return sprout::swallow; - } - template - inline SPROUT_CONSTEXPR sprout::swallow_t - operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT { - return sprout::swallow; - } +// template +// inline SPROUT_CONSTEXPR sprout::swallow_t +// operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT { +// return sprout::swallow; +// } +// template +// inline SPROUT_CONSTEXPR sprout::swallow_t +// operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT { +// return sprout::swallow; +// } // // unused_t