]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/hana/config.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / hana / config.hpp
index 6790e024f8af3d409517cc9ee6bb5ef1ce075f8d..87590a180e6acc83d6f2d566014fc4b8ff06cde9 100644 (file)
@@ -104,12 +104,14 @@ Distributed under the Boost Software License, Version 1.0.
 #   define BOOST_HANA_CONSTEXPR_LAMBDA /* nothing */
 #endif
 
-//////////////////////////////////////////////////////////////////////////////
-// Namespace macros
-//////////////////////////////////////////////////////////////////////////////
-#define BOOST_HANA_NAMESPACE_BEGIN namespace boost { namespace hana {
-
-#define BOOST_HANA_NAMESPACE_END }}
+// `BOOST_HANA_INLINE_VARIABLE` expands to `inline` when C++17 inline variables
+// are supported, and to nothing otherwise. This allows marking global variables
+// defined in a header as `inline` to avoid potential ODR violations.
+#if defined(__cplusplus) && __cplusplus > 201402L
+#   define BOOST_HANA_INLINE_VARIABLE inline
+#else
+#   define BOOST_HANA_INLINE_VARIABLE /* nothing */
+#endif
 
 //////////////////////////////////////////////////////////////////////////////
 // Library features and options that can be tweaked by users