]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/x3/auxiliary/eps.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / auxiliary / eps.hpp
index 3d4ae9a57df5d997b7303e952adc3a4f0c06e136..bcae6386c01d4e8de1dcadc24f1b8140246588de 100644 (file)
@@ -20,7 +20,7 @@ namespace boost { namespace spirit { namespace x3
         typedef unused_type attribute_type;
         static bool const has_attribute = false;
 
-        semantic_predicate(bool predicate)
+        constexpr semantic_predicate(bool predicate)
           : predicate(predicate) {}
 
         template <typename Iterator, typename Context, typename Attribute>
@@ -40,7 +40,7 @@ namespace boost { namespace spirit { namespace x3
         typedef unused_type attribute_type;
         static bool const has_attribute = false;
 
-        lazy_semantic_predicate(F f)
+        constexpr lazy_semantic_predicate(F f)
           : f(f) {}
 
         template <typename Iterator, typename Context, typename Attribute>
@@ -68,19 +68,19 @@ namespace boost { namespace spirit { namespace x3
             return true;
         }
 
-        inline semantic_predicate operator()(bool predicate) const
+        constexpr semantic_predicate operator()(bool predicate) const
         {
             return { predicate };
         }
 
         template <typename F>
-        lazy_semantic_predicate<F> operator()(F f) const
+        constexpr lazy_semantic_predicate<F> operator()(F f) const
         {
             return { f };
         }
     };
 
-    auto const eps = eps_parser{};
+    constexpr auto eps = eps_parser{};
 }}}
 
 #endif