bad_weak_ptr.hpp
Go to the documentation of this file.
00001 #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
00002 #define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
00003 
00004 // MS compatible compilers support #pragma once
00005 
00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
00007 # pragma once
00008 #endif
00009 
00010 //
00011 //  boost/smart_ptr/bad_weak_ptr.hpp
00012 //
00013 //  Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
00014 //
00015 // Distributed under the Boost Software License, Version 1.0. (See
00016 // accompanying file LICENSE_1_0.txt or copy at
00017 // http://www.boost.org/LICENSE_1_0.txt)
00018 //
00019 
00020 #include <exception>
00021 
00022 #ifdef __BORLANDC__
00023 # pragma warn -8026     // Functions with excep. spec. are not expanded inline
00024 #endif
00025 
00026 namespace boost
00027 {
00028 
00029 // The standard library that comes with Borland C++ 5.5.1, 5.6.4
00030 // defines std::exception and its members as having C calling
00031 // convention (-pc). When the definition of bad_weak_ptr
00032 // is compiled with -ps, the compiler issues an error.
00033 // Hence, the temporary #pragma option -pc below.
00034 
00035 #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
00036 # pragma option push -pc
00037 #endif
00038 
00039 class bad_weak_ptr: public std::exception
00040 {
00041 public:
00042 
00043     virtual char const * what() const throw()
00044     {
00045         return "tr1::bad_weak_ptr";
00046     }
00047 };
00048 
00049 #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
00050 # pragma option pop
00051 #endif
00052 
00053 } // namespace boost
00054 
00055 #ifdef __BORLANDC__
00056 # pragma warn .8026     // Functions with excep. spec. are not expanded inline
00057 #endif
00058 
00059 #endif  // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:28