]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/metaparse/v1/one_of.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / one_of.hpp
index d48db4c4c091d150c70018388214e8f90cf34e1d..409d58d99261dd24753acc5a4b0f06465532d622 100644 (file)
@@ -1,42 +1,18 @@
 #ifndef BOOST_METAPARSE_V1_ONE_OF_HPP
 #define BOOST_METAPARSE_V1_ONE_OF_HPP
 
-// Copyright Abel Sinkovics (abel@sinkovics.hu)  2009 - 2010.
+// Copyright Abel Sinkovics (abel@sinkovics.hu)  2017.
 // Distributed under the Boost Software License, Version 1.0.
 //    (See accompanying file LICENSE_1_0.txt or copy at
 //          http://www.boost.org/LICENSE_1_0.txt)
 
-#include <boost/metaparse/v1/impl/one_of.hpp>
-#include <boost/metaparse/limit_one_of_size.hpp>
+#include <boost/metaparse/config.hpp>
 
-#include <boost/mpl/vector.hpp>
-
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
-
-namespace boost
-{
-  namespace metaparse
-  {
-    namespace v1
-    {
-      template <
-        BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
-          BOOST_METAPARSE_LIMIT_ONE_OF_SIZE,
-          class P,
-          boost::mpl::na
-        )
-      >
-      struct one_of :
-        impl::one_of<
-          boost::mpl::vector<
-            BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_ONE_OF_SIZE, P)
-          >
-        >
-      {};
-    }
-  }
-}
+#if BOOST_METAPARSE_STD >= 2011
+#  include <boost/metaparse/v1/cpp11/one_of.hpp>
+#else
+#  include <boost/metaparse/v1/cpp98/one_of.hpp>
+#endif
 
 #endif