]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/smart_ptr/test/sp_guides_test2.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / sp_guides_test2.cpp
diff --git a/ceph/src/boost/libs/smart_ptr/test/sp_guides_test2.cpp b/ceph/src/boost/libs/smart_ptr/test/sp_guides_test2.cpp
new file mode 100644 (file)
index 0000000..e7ccfbc
--- /dev/null
@@ -0,0 +1,23 @@
+// Copyright 2020 Peter Dimov
+// Distributed under the Boost Software License, Version 1.0.
+// https://www.boost.org/LICENSE_1_0.txt
+
+#if defined(__cpp_deduction_guides)
+
+#include <boost/shared_ptr.hpp>
+#include <memory>
+
+int main()
+{
+    boost::shared_ptr p2( std::unique_ptr<int>( new int ) );
+}
+
+#else
+
+#include <boost/config/pragma_message.hpp>
+
+BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_deduction_guides is not defined" )
+
+int main() {}
+
+#endif