]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/type_index/test/test_lib.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / type_index / test / test_lib.cpp
index 8c3fa68708a30018eefbc7a48c8034d0b7448fb3..8879173cee7748423fa46ac22e6afb525e3b8d8e 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Copyright (c) Antony Polukhin, 2012-2015.
+// Copyright (c) Antony Polukhin, 2012-2018.
 //
 //
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -31,7 +31,7 @@ boost::typeindex::type_index get_const_user_defined_class() {
     return boost::typeindex::type_id_with_cvr<const user_defined_namespace::user_defined>();
 }
 
-#ifndef BOOST_HAS_PRAGMA_DETECT_MISMATCH
+#if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI)
 // Just do nothing
 void accept_typeindex(const boost::typeindex::type_index&) {}
 #endif