Sha256: 89dbe67b2b78106c43569356c7f139fad1ba0248a4da518753adb25eaddb1e3f

Contents?: true

Size: 953 Bytes

Versions: 47

Compression:

Stored size: 953 Bytes

Contents

//Copyright (c) 2006-2009 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_7E83C166200811DE885E826156D89593
#define UUID_7E83C166200811DE885E826156D89593
#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

namespace
boost
    {
    template <class E>
    inline
    E *
    current_exception_cast()
        {
        try
            {
            throw;
            }
        catch(
        E & e )
            {
            return &e;
            }
        catch(
        ...)
            {
            return 0;
            }
        }
    }

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

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
passenger-4.0.20 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.19 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.18 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.17 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.16 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.14 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.13 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.10 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.8 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.7 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.6 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.5 ext/boost/exception/current_exception_cast.hpp
passenger-3.0.21 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.4 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.3 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.2 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.1 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.0.rc6 ext/boost/exception/current_exception_cast.hpp
passenger-4.0.0.rc4 ext/boost/exception/current_exception_cast.hpp
passenger-3.9.2.beta ext/boost/exception/current_exception_cast.hpp