]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/x3/directive/raw.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / directive / raw.hpp
index 8432e138883b8864c08015380d993ea313b4db6d..2f823625445e6b09a5993d808f52a705cc77c890 100644 (file)
@@ -10,6 +10,7 @@
 #include <boost/spirit/home/x3/core/skip_over.hpp>
 #include <boost/spirit/home/x3/core/parser.hpp>
 #include <boost/spirit/home/x3/support/traits/move_to.hpp>
+#include <boost/spirit/home/x3/support/traits/pseudo_attribute.hpp>
 #include <boost/range/iterator_range.hpp>
 
 namespace boost { namespace spirit { namespace x3
@@ -65,6 +66,21 @@ namespace boost { namespace spirit { namespace x3
     };
 
     auto const raw = raw_gen{};
+
+    namespace traits
+    {
+        template <typename Context, typename Iterator>
+        struct pseudo_attribute<Context, raw_attribute_type, Iterator>
+        {
+            using attribute_type = raw_attribute_type;
+            using type = boost::iterator_range<Iterator>;
+
+            static type call(Iterator& first, Iterator const& last, attribute_type)
+            {
+                return { first, last };
+            }
+        };
+    }
 }}}
 
 #endif