]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/identity_type/test/noncopyable.cpp
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
8 #include <boost/utility/identity_type.hpp>
9 #include <boost/static_assert.hpp>
10 #include <boost/noncopyable.hpp>
13 #define TMP_ASSERT(metafunction) \
14 BOOST_STATIC_ASSERT(metafunction::value)
16 template<typename T
, T init
>
17 struct noncopyable
: boost::noncopyable
{
18 static const T value
= init
;
21 TMP_ASSERT(BOOST_IDENTITY_TYPE((noncopyable
<bool, true>)));
24 int main() { return 0; }