1 //Copyright (c) 2006-2010 Emil Dotchevski and Reverge Studios, Inc.
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef UUID_C3E1741C754311DDB2834CCA55D89593
7 #define UUID_C3E1741C754311DDB2834CCA55D89593
8 #if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
9 #pragma GCC system_header
11 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
12 #pragma warning(push,1)
15 #include <boost/detail/sp_typeinfo.hpp>
16 #include <boost/current_function.hpp>
17 #include <boost/config.hpp>
18 #ifndef BOOST_NO_TYPEID
19 #include <boost/units/detail/utility.hpp>
31 #ifdef BOOST_NO_TYPEID
32 return BOOST_CURRENT_FUNCTION;
34 return units::detail::demangle(typeid(T*).name());
43 #ifdef BOOST_NO_TYPEID
44 return BOOST_CURRENT_FUNCTION;
46 return units::detail::demangle(typeid(T).name());
56 detail::sp_typeinfo const & type_;
59 type_info_( detail::sp_typeinfo const & type ):
66 operator<( type_info_ const & a, type_info_ const & b )
68 return 0!=(a.type_.before(b.type_));
74 #define BOOST_EXCEPTION_STATIC_TYPEID(T) ::boost::exception_detail::type_info_(BOOST_SP_TYPEID(T))
77 #define BOOST_EXCEPTION_DYNAMIC_TYPEID(x) ::boost::exception_detail::type_info_(typeid(x))
80 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)