mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-27 21:45:42 +00:00
fix swallow:wq
This commit is contained in:
parent
91b37d8f7f
commit
8274f34db4
1 changed files with 10 additions and 12 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue