1 // Copyright (C) 2010 Peder Holt 2 // Use, modification and distribution is subject to the Boost Software 3 // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) 4 5 #ifndef BOOST_TYPEOF_UNSUPPORTED_HPP_INCLUDED 6 #define BOOST_TYPEOF_UNSUPPORTED_HPP_INCLUDED 7 8 namespace boost { namespace type_of { 9 struct typeof_emulation_is_unsupported_on_this_compiler {}; 10 }} 11 12 #define BOOST_TYPEOF(expr) boost::type_of::typeof_emulation_is_unsupported_on_this_compiler 13 #define BOOST_TYPEOF_TPL BOOST_TYPEOF 14 15 #define BOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr) \ 16 struct name {\ 17 typedef BOOST_TYPEOF_TPL(expr) type;\ 18 }; 19 20 #define BOOST_TYPEOF_NESTED_TYPEDEF(name,expr) \ 21 struct name {\ 22 typedef BOOST_TYPEOF(expr) type;\ 23 }; 24 25 26 #define BOOST_TYPEOF_REGISTER_TYPE(x) 27 #define BOOST_TYPEOF_REGISTER_TEMPLATE(x, params) 28 29 #endif