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
00005
00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
00007 # pragma once
00008 #endif
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00030
00031
00032
00033
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 }
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