1 | // Copyright (C) 2004 Arkadiy Vertleyb |
2 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
4 | |
5 | #ifndef BOOST_TYPEOF_TYPEOF_HPP_INCLUDED |
6 | #define BOOST_TYPEOF_TYPEOF_HPP_INCLUDED |
7 | |
8 | #include <boost/config.hpp> |
9 | #include <boost/config/workaround.hpp> |
10 | |
11 | #if BOOST_WORKAROUND(BOOST_MSVC, <= 1900) |
12 | |
13 | # include <boost/typeof/msvc/typeof_impl.hpp> |
14 | |
15 | # define BOOST_TYPEOF_REGISTER_TYPE(x) |
16 | # define BOOST_TYPEOF_REGISTER_TEMPLATE(x, params) |
17 | |
18 | #else |
19 | |
20 | # include <boost/typeof/decltype.hpp> |
21 | |
22 | #endif |
23 | |
24 | #define BOOST_TYPEOF_UNIQUE_ID()\ |
25 | BOOST_TYPEOF_REGISTRATION_GROUP * 0x10000 + __LINE__ |
26 | |
27 | #define BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()\ |
28 | <boost/typeof/incr_registration_group.hpp> |
29 | |
30 | // auto |
31 | #define BOOST_AUTO(Var, Expr) auto Var = Expr |
32 | #define BOOST_AUTO_TPL(Var, Expr) auto Var = Expr |
33 | |
34 | #endif//BOOST_TYPEOF_TYPEOF_HPP_INCLUDED |
35 | |