weed::traits::attribute_of をコンテキストに依存するよう変更

This commit is contained in:
bolero-MURAKAMI 2011-11-14 20:48:17 +09:00
parent a7698fa6e9
commit 1c898f8b93
13 changed files with 64 additions and 79 deletions

View file

@ -38,7 +38,11 @@ namespace sprout {
typedef sprout::weed::parse_context<Iterator> context_type;
typedef typename sprout::tuples::tuple_element<0, typename Expr::args_type>::type parser_type;
public:
typedef typename sprout::weed::traits::attribute_of<Expr, Iterator, context_type>::type attribute_type;
typedef typename sprout::weed::traits::attribute_of<
parser_type,
Iterator,
context_type
>::type attribute_type;
typedef sprout::weed::eval_result<context_type, Iterator, attribute_type> result_type;
private:
template<typename Result>