fix swallow:wq

This commit is contained in:
bolero-MURAKAMI 2018-05-29 23:09:43 +09:00
parent 91b37d8f7f
commit 8274f34db4

View file

@ -18,8 +18,6 @@ namespace sprout {
// //
// example: // example:
// swallow({(void)pack, 0}...); // swallow({(void)pack, 0}...);
// ((void)pack, ..., swallow); // right fold, since C++17
// (swallow, ..., (void)pack); // left fold, since C++17
// //
struct swallow_t { struct swallow_t {
public: public:
@ -30,16 +28,16 @@ namespace sprout {
namespace { namespace {
SPROUT_STATIC_CONSTEXPR sprout::swallow_t swallow = {}; SPROUT_STATIC_CONSTEXPR sprout::swallow_t swallow = {};
} // anonymous-namespace } // anonymous-namespace
template<typename T> // template<typename T>
inline SPROUT_CONSTEXPR sprout::swallow_t // inline SPROUT_CONSTEXPR sprout::swallow_t
operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT { // operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT {
return sprout::swallow; // return sprout::swallow;
} // }
template<typename T> // template<typename T>
inline SPROUT_CONSTEXPR sprout::swallow_t // inline SPROUT_CONSTEXPR sprout::swallow_t
operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT { // operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT {
return sprout::swallow; // return sprout::swallow;
} // }
// //
// unused_t // unused_t