Chris@16: #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED Chris@16: #define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1020) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: // Chris@16: // boost/smart_ptr/bad_weak_ptr.hpp Chris@16: // Chris@16: // Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef __BORLANDC__ Chris@16: # pragma warn -8026 // Functions with excep. spec. are not expanded inline Chris@16: #endif Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: Chris@16: // The standard library that comes with Borland C++ 5.5.1, 5.6.4 Chris@16: // defines std::exception and its members as having C calling Chris@16: // convention (-pc). When the definition of bad_weak_ptr Chris@16: // is compiled with -ps, the compiler issues an error. Chris@16: // Hence, the temporary #pragma option -pc below. Chris@16: Chris@16: #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 Chris@16: # pragma option push -pc Chris@16: #endif Chris@16: Chris@16: class bad_weak_ptr: public std::exception Chris@16: { Chris@16: public: Chris@16: Chris@16: virtual char const * what() const throw() Chris@16: { Chris@16: return "tr1::bad_weak_ptr"; Chris@16: } Chris@16: }; Chris@16: Chris@16: #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 Chris@16: # pragma option pop Chris@16: #endif Chris@16: Chris@16: } // namespace boost Chris@16: Chris@16: #ifdef __BORLANDC__ Chris@16: # pragma warn .8026 // Functions with excep. spec. are not expanded inline Chris@16: #endif Chris@16: Chris@16: #endif // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED