]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/identity_type/test/noncopyable.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / utility / identity_type / test / noncopyable.cpp
1
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
3 // Distributed under the Boost Software License, Version 1.0
4 // (see accompanying file LICENSE_1_0.txt or a copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 // Home at http://www.boost.org/libs/utility/identity_type
7
8 #include <boost/utility/identity_type.hpp>
9 #include <boost/static_assert.hpp>
10 #include <boost/noncopyable.hpp>
11
12 //[noncopyable
13 #define TMP_ASSERT(metafunction) \
14 BOOST_STATIC_ASSERT(metafunction::value)
15
16 template<typename T, T init>
17 struct noncopyable : boost::noncopyable {
18 static const T value = init;
19 };
20
21 TMP_ASSERT(BOOST_IDENTITY_TYPE((noncopyable<bool, true>)));
22 //]
23
24 int main() { return 0; }
25