1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/detail/bad_weak_ptr.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,59 @@
1.4 +#ifndef BOOST_BAD_WEAK_PTR_HPP_INCLUDED
1.5 +#define BOOST_BAD_WEAK_PTR_HPP_INCLUDED
1.6 +
1.7 +// MS compatible compilers support #pragma once
1.8 +
1.9 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
1.10 +# pragma once
1.11 +#endif
1.12 +
1.13 +//
1.14 +// detail/bad_weak_ptr.hpp
1.15 +//
1.16 +// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
1.17 +//
1.18 +// Distributed under the Boost Software License, Version 1.0. (See
1.19 +// accompanying file LICENSE_1_0.txt or copy at
1.20 +// http://www.boost.org/LICENSE_1_0.txt)
1.21 +//
1.22 +
1.23 +#include <exception>
1.24 +
1.25 +#ifdef __BORLANDC__
1.26 +# pragma warn -8026 // Functions with excep. spec. are not expanded inline
1.27 +#endif
1.28 +
1.29 +namespace boost
1.30 +{
1.31 +
1.32 +// The standard library that comes with Borland C++ 5.5.1, 5.6.4
1.33 +// defines std::exception and its members as having C calling
1.34 +// convention (-pc). When the definition of bad_weak_ptr
1.35 +// is compiled with -ps, the compiler issues an error.
1.36 +// Hence, the temporary #pragma option -pc below.
1.37 +
1.38 +#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
1.39 +# pragma option push -pc
1.40 +#endif
1.41 +
1.42 +class bad_weak_ptr: public std::exception
1.43 +{
1.44 +public:
1.45 +
1.46 + virtual char const * what() const throw()
1.47 + {
1.48 + return "tr1::bad_weak_ptr";
1.49 + }
1.50 +};
1.51 +
1.52 +#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
1.53 +# pragma option pop
1.54 +#endif
1.55 +
1.56 +} // namespace boost
1.57 +
1.58 +#ifdef __BORLANDC__
1.59 +# pragma warn .8026 // Functions with excep. spec. are not expanded inline
1.60 +#endif
1.61 +
1.62 +#endif // #ifndef BOOST_BAD_WEAK_PTR_HPP_INCLUDED