]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/smart_ptr/test/wp_guides_test.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / wp_guides_test.cpp
1 // Copyright 2020 Peter Dimov
2 // Distributed under the Boost Software License, Version 1.0.
3 // https://www.boost.org/LICENSE_1_0.txt
4
5 #if defined(__cpp_deduction_guides)
6
7 #include <boost/shared_ptr.hpp>
8 #include <boost/weak_ptr.hpp>
9
10 int main()
11 {
12 boost::shared_ptr<int> p1( new int );
13 boost::weak_ptr p2( p1 );
14 }
15
16 #else
17
18 #include <boost/config/pragma_message.hpp>
19
20 BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_deduction_guides is not defined" )
21
22 int main() {}
23
24 #endif