diff options
Diffstat (limited to 'boost/spirit/home/karma/nonterminal/rule.hpp')
-rw-r--r-- | boost/spirit/home/karma/nonterminal/rule.hpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/boost/spirit/home/karma/nonterminal/rule.hpp b/boost/spirit/home/karma/nonterminal/rule.hpp index ab7db1265d..4a8604a656 100644 --- a/boost/spirit/home/karma/nonterminal/rule.hpp +++ b/boost/spirit/home/karma/nonterminal/rule.hpp @@ -286,15 +286,11 @@ namespace boost { namespace spirit { namespace karma if (f) { // Create an attribute if none is supplied. - typedef traits::make_attribute<attr_type, Attribute> - make_attribute; typedef traits::transform_attribute< - typename make_attribute::type, attr_type, domain> + Attribute const, attr_type, domain> transform; - typename transform::type attr_ = - traits::pre_transform<domain, attr_type>( - make_attribute::call(attr)); + typename transform::type attr_ = transform::pre(attr); // If you are seeing a compilation error here, you are probably // trying to use a rule or a grammar which has inherited @@ -326,15 +322,11 @@ namespace boost { namespace spirit { namespace karma if (f) { // Create an attribute if none is supplied. - typedef traits::make_attribute<attr_type, Attribute> - make_attribute; typedef traits::transform_attribute< - typename make_attribute::type, attr_type, domain> + Attribute const, attr_type, domain> transform; - typename transform::type attr_ = - traits::pre_transform<domain, attr_type>( - make_attribute::call(attr)); + typename transform::type attr_ = transform::pre(attr); // If you are seeing a compilation error here, you are probably // trying to use a rule or a grammar which has inherited |