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:
// 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<typename T>
inline SPROUT_CONSTEXPR sprout::swallow_t
operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT {
return sprout::swallow;
}
template<typename T>
inline SPROUT_CONSTEXPR sprout::swallow_t
operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT {
return sprout::swallow;
}
// template<typename T>
// inline SPROUT_CONSTEXPR sprout::swallow_t
// operator,(sprout::swallow_t, T&&) SPROUT_NOEXCEPT {
// return sprout::swallow;
// }
// template<typename T>
// inline SPROUT_CONSTEXPR sprout::swallow_t
// operator,(T&&, sprout::swallow_t) SPROUT_NOEXCEPT {
// return sprout::swallow;
// }
//
// unused_t