File indexing completed on 2025-12-16 10:08:50
0001 #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
0003
0004
0005
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include <boost/config.hpp>
0021 #include <exception>
0022
0023 namespace boost
0024 {
0025
0026 #if defined(BOOST_CLANG)
0027
0028 # pragma clang diagnostic push
0029 # pragma clang diagnostic ignored "-Wweak-vtables"
0030 #endif
0031
0032 class bad_weak_ptr: public std::exception
0033 {
0034 public:
0035
0036 char const * what() const noexcept override
0037 {
0038 return "tr1::bad_weak_ptr";
0039 }
0040 };
0041
0042 #if defined(BOOST_CLANG)
0043 # pragma clang diagnostic pop
0044 #endif
0045
0046 }
0047
0048 #endif