]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/hana/one.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / hana / one.hpp
index b8d759b8c0187fa3ff126fa4043d5a391fb10719..df27b1e834f79e30488d97039d5539498ec705ef 100644 (file)
@@ -23,21 +23,21 @@ Distributed under the Boost Software License, Version 1.0.
 
 
 BOOST_HANA_NAMESPACE_BEGIN
+    //! @cond
     template <typename R>
-    struct one_t {
+    constexpr decltype(auto) one_t<R>::operator()() const {
     #ifndef BOOST_HANA_CONFIG_DISABLE_CONCEPT_CHECKS
         static_assert(hana::Ring<R>::value,
         "hana::one<R>() requires 'R' to be a Ring");
     #endif
 
-        constexpr decltype(auto) operator()() const {
-            using One = BOOST_HANA_DISPATCH_IF(one_impl<R>,
-                hana::Ring<R>::value
-            );
+        using One = BOOST_HANA_DISPATCH_IF(one_impl<R>,
+            hana::Ring<R>::value
+        );
 
-            return One::apply();
-        }
-    };
+        return One::apply();
+    }
+    //! @endcond
 
     template <typename R, bool condition>
     struct one_impl<R, when<condition>> : default_ {