Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / spirit / home / support / detail / scoped_enum_emulation.hpp
blob1b35043f89ae70408f59433bf6e3fe5f51ecca1d
1 // Copyright (c) 2001-2011 Hartmut Kaiser
2 // http://spirit.sourceforge.net/
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_SPIRIT_SCOPED_ENUM_EMULATION_HPP
8 #define BOOST_SPIRIT_SCOPED_ENUM_EMULATION_HPP
10 #if defined(_MSC_VER)
11 #pragma once
12 #endif
14 #include <boost/version.hpp>
15 #include <boost/config.hpp>
17 #if BOOST_VERSION >= 104000
18 # include <boost/detail/scoped_enum_emulation.hpp>
19 #else
20 # if !defined(BOOST_NO_CXX11_SCOPED_ENUMS)
21 # define BOOST_NO_CXX11_SCOPED_ENUMS
22 # endif
23 # define BOOST_SCOPED_ENUM_START(name) struct name { enum enum_type
24 # define BOOST_SCOPED_ENUM_END };
25 # define BOOST_SCOPED_ENUM(name) name::enum_type
26 #endif
28 #endif