]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/repository/home/karma/nonterminal/subrule.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / repository / home / karma / nonterminal / subrule.hpp
index 4eaee8e33a49a1adabb59bccda5a716f7574594f..555315ba7f01cf5011c117c0dca0adbc03cad83d 100644 (file)
@@ -168,16 +168,13 @@ namespace boost { namespace spirit { namespace repository { namespace karma
                 >
             context_type;
 
-            // Create an attribute if none is supplied.
-            typedef traits::make_attribute<subrule_attr_type, Attribute> 
-                make_attribute;
+            typedef traits::transform_attribute<Attribute const
+              , subrule_attr_type, spirit::karma::domain> transform;
 
             // If you are seeing a compilation error here, you are probably
             // trying to use a subrule which has inherited attributes,
             // without passing values for them.
-            context_type context(*this
-              , traits::pre_transform<spirit::karma::domain, subrule_attr_type>(
-                      make_attribute::call(attr)));
+            context_type context(*this, transform::pre(attr));
 
             return def.binder(sink, context, delimiter);
         }
@@ -203,16 +200,14 @@ namespace boost { namespace spirit { namespace repository { namespace karma
                 >
             context_type;
 
-            // Create an attribute if none is supplied.
-            typedef traits::make_attribute<subrule_attr_type, Attribute> 
-                make_attribute;
+            typedef traits::transform_attribute<Attribute const
+              , subrule_attr_type, spirit::karma::domain> transform;
 
             // If you are seeing a compilation error here, you are probably
             // trying to use a subrule which has inherited attributes,
             // passing values of incompatible types for them.
             context_type context(*this
-              , traits::pre_transform<spirit::karma::domain, subrule_attr_type>(
-                        make_attribute::call(attr)), params, caller_context);
+              , transform::pre(attr), params, caller_context);
 
             return def.binder(sink, context, delimiter);
         }