fix unfold

fix pair tuple support
This commit is contained in:
bolero-MURAKAMI 2012-09-28 16:05:09 +09:00
parent b1b7a9fefc
commit 06f1933220
3 changed files with 7 additions and 10 deletions

View file

@ -187,10 +187,10 @@ namespace testspr {
T val;
public:
SPROUT_CONSTEXPR T const& generated_value() const { return val; }
SPROUT_CONSTEXPR T const& next_generator() const { return val; }
SPROUT_CONSTEXPR T next_generator() const { return val + 1; }
};
public:
SPROUT_CONSTEXPR result operator()(T const& val) const { return result{val + 1}; }
SPROUT_CONSTEXPR result operator()(T const& val) const { return result{val}; }
};
//