Sha256: de2b139458a8fa48b476923d42e8854f17e787036a9e21a6b56e0910877540e1

Contents?: true

Size: 1.96 KB

Versions: 22

Compression:

Stored size: 1.96 KB

Contents

//Copyright (c) 2006-2010 Emil Dotchevski and Reverge Studios, Inc.

//Distributed under the Boost Software License, Version 1.0. (See accompanying
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#ifndef UUID_C3E1741C754311DDB2834CCA55D89593
#define UUID_C3E1741C754311DDB2834CCA55D89593
#if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
#pragma GCC system_header
#endif
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
#pragma warning(push,1)
#endif

#include <boost/detail/sp_typeinfo.hpp>
#include <boost/current_function.hpp>
#include <boost/config.hpp>
#ifndef BOOST_NO_TYPEID
#include <boost/units/detail/utility.hpp>
#endif
#include <string>

namespace
boost
    {
    template <class T>
    inline
    std::string
    tag_type_name()
        {
#ifdef BOOST_NO_TYPEID
        return BOOST_CURRENT_FUNCTION;
#else
        return units::detail::demangle(typeid(T*).name());
#endif
        }

    template <class T>
    inline
    std::string
    type_name()
        {
#ifdef BOOST_NO_TYPEID
        return BOOST_CURRENT_FUNCTION;
#else
        return units::detail::demangle(typeid(T).name());
#endif
        }

    namespace
    exception_detail
        {
        struct
        type_info_
            {
            detail::sp_typeinfo const & type_;

            explicit
            type_info_( detail::sp_typeinfo const & type ):
                type_(type)
                {
                }

            friend
            bool
            operator<( type_info_ const & a, type_info_ const & b )
                {
                return 0!=(a.type_.before(b.type_));
                }
            };
        }
    }

#define BOOST_EXCEPTION_STATIC_TYPEID(T) ::boost::exception_detail::type_info_(BOOST_SP_TYPEID(T))

#ifndef BOOST_NO_RTTI
#define BOOST_EXCEPTION_DYNAMIC_TYPEID(x) ::boost::exception_detail::type_info_(typeid(x))
#endif

#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
#pragma warning(pop)
#endif
#endif

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
passenger-3.0.21 ext/boost/exception/detail/type_info.hpp
passenger-3.0.19 ext/boost/exception/detail/type_info.hpp
passenger-3.0.18 ext/boost/exception/detail/type_info.hpp
passenger-3.0.17 ext/boost/exception/detail/type_info.hpp
passenger-3.0.15 ext/boost/exception/detail/type_info.hpp
passenger-3.0.14 ext/boost/exception/detail/type_info.hpp
passenger-3.0.13 ext/boost/exception/detail/type_info.hpp
passenger-3.0.12 ext/boost/exception/detail/type_info.hpp
yspassenger-3.0.12 ext/boost/exception/detail/type_info.hpp
passenger-3.0.11 ext/boost/exception/detail/type_info.hpp
passenger-3.0.10 ext/boost/exception/detail/type_info.hpp
passenger-3.0.9 ext/boost/exception/detail/type_info.hpp
passenger-3.0.8 ext/boost/exception/detail/type_info.hpp
passenger-3.0.7 ext/boost/exception/detail/type_info.hpp
passenger-3.0.6 ext/boost/exception/detail/type_info.hpp
passenger-3.0.5 ext/boost/exception/detail/type_info.hpp
passenger-3.0.4 ext/boost/exception/detail/type_info.hpp
passenger-3.0.3 ext/boost/exception/detail/type_info.hpp
railsware-passenger-3.0.2.1 ext/boost/exception/detail/type_info.hpp
passenger-3.0.2 ext/boost/exception/detail/type_info.hpp