Back to home page

EIC code displayed by LXR

 
 

    


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 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009 
0010 //
0011 //  boost/smart_ptr/bad_weak_ptr.hpp
0012 //
0013 //  Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
0014 //
0015 // Distributed under the Boost Software License, Version 1.0. (See
0016 // accompanying file LICENSE_1_0.txt or copy at
0017 // http://www.boost.org/LICENSE_1_0.txt)
0018 //
0019 
0020 #include <boost/config.hpp>
0021 #include <exception>
0022 
0023 namespace boost
0024 {
0025 
0026 #if defined(BOOST_CLANG)
0027 // Intel C++ on Mac defines __clang__ but doesn't support the pragma
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 } // namespace boost
0047 
0048 #endif  // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED