Sha256: b45a8864b8fc7d076258e9a59287d1eaed67be35990a57082e3d8f6f1f528be7

Contents?: true

Size: 1.36 KB

Versions: 30

Compression:

Stored size: 1.36 KB

Contents

#ifndef BOOST_BAD_WEAK_PTR_HPP_INCLUDED
#define BOOST_BAD_WEAK_PTR_HPP_INCLUDED

// MS compatible compilers support #pragma once

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

//
//  detail/bad_weak_ptr.hpp
//
//  Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
//
// 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)
//

#include <exception>

#ifdef __BORLANDC__
# pragma warn -8026     // Functions with excep. spec. are not expanded inline
#endif

namespace boost
{

// The standard library that comes with Borland C++ 5.5.1, 5.6.4
// defines std::exception and its members as having C calling
// convention (-pc). When the definition of bad_weak_ptr
// is compiled with -ps, the compiler issues an error.
// Hence, the temporary #pragma option -pc below.

#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
# pragma option push -pc
#endif

class bad_weak_ptr: public std::exception
{
public:

    virtual char const * what() const throw()
    {
        return "tr1::bad_weak_ptr";
    }
};

#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
# pragma option pop
#endif

} // namespace boost

#ifdef __BORLANDC__
# pragma warn .8026     // Functions with excep. spec. are not expanded inline
#endif

#endif  // #ifndef BOOST_BAD_WEAK_PTR_HPP_INCLUDED

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
rockdog-passenger-0.0.1 ext/boost/detail/bad_weak_ptr.hpp
vanity-1.7.1 vendor/ruby/1.9.1/gems/passenger-2.2.15/ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.15 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.14 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.13 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.12 ext/boost/detail/bad_weak_ptr.hpp
colouringcode-passenger-0.2 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.11 ext/boost/detail/bad_weak_ptr.hpp
passenger-jmazzi-2.2.10 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.10 ext/boost/detail/bad_weak_ptr.hpp
passenger-jmazzi-2.2.9 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.9 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.8 ext/boost/detail/bad_weak_ptr.hpp
colouringcode-passenger-0.1 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.7 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.6 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.5 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.3 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.2.4 ext/boost/detail/bad_weak_ptr.hpp
passenger-2.0.1 ext/boost/detail/bad_weak_ptr.hpp