]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/scoped_enum_compile_fail_conv_from_int.cpp
2 * Copyright Andrey Semashev 2014.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
8 * \file scoped_enum_compile_fail_conv_from_int.cpp
9 * \author Andrey Semashev
12 * \brief This test checks that scoped enum emulation prohibits implicit conversions from int
15 #include <boost/core/scoped_enum.hpp>
17 BOOST_SCOPED_ENUM_DECLARE_BEGIN(color
)
23 BOOST_SCOPED_ENUM_DECLARE_END(color
)
25 int main(int, char*[])
29 return boost::native_value(col
);