]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/typeof/test/template_enum.cpp
1 // Copyright (C) 2006 Arkadiy Vertleyb
2 // Use, modification and distribution is subject to the Boost Software
3 // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
6 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
8 enum E
{ONE
, TWO
, THREE
};
9 template<E e
> struct t
{};
11 BOOST_TYPEOF_REGISTER_TEMPLATE(t
,
12 (BOOST_TYPEOF_INTEGRAL(E
))
15 BOOST_STATIC_ASSERT(boost::type_of::test
<t
<TWO
> >::value
);