annotate DEPENDENCIES/generic/include/boost/smart_ptr/bad_weak_ptr.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
Chris@16 2 #define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
Chris@16 3
Chris@16 4 // MS compatible compilers support #pragma once
Chris@16 5
Chris@16 6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
Chris@16 7 # pragma once
Chris@16 8 #endif
Chris@16 9
Chris@16 10 //
Chris@16 11 // boost/smart_ptr/bad_weak_ptr.hpp
Chris@16 12 //
Chris@16 13 // Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
Chris@16 14 //
Chris@16 15 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 16 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 17 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 18 //
Chris@16 19
Chris@16 20 #include <exception>
Chris@16 21
Chris@16 22 #ifdef __BORLANDC__
Chris@16 23 # pragma warn -8026 // Functions with excep. spec. are not expanded inline
Chris@16 24 #endif
Chris@16 25
Chris@16 26 namespace boost
Chris@16 27 {
Chris@16 28
Chris@16 29 // The standard library that comes with Borland C++ 5.5.1, 5.6.4
Chris@16 30 // defines std::exception and its members as having C calling
Chris@16 31 // convention (-pc). When the definition of bad_weak_ptr
Chris@16 32 // is compiled with -ps, the compiler issues an error.
Chris@16 33 // Hence, the temporary #pragma option -pc below.
Chris@16 34
Chris@16 35 #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
Chris@16 36 # pragma option push -pc
Chris@16 37 #endif
Chris@16 38
Chris@16 39 class bad_weak_ptr: public std::exception
Chris@16 40 {
Chris@16 41 public:
Chris@16 42
Chris@16 43 virtual char const * what() const throw()
Chris@16 44 {
Chris@16 45 return "tr1::bad_weak_ptr";
Chris@16 46 }
Chris@16 47 };
Chris@16 48
Chris@16 49 #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
Chris@16 50 # pragma option pop
Chris@16 51 #endif
Chris@16 52
Chris@16 53 } // namespace boost
Chris@16 54
Chris@16 55 #ifdef __BORLANDC__
Chris@16 56 # pragma warn .8026 // Functions with excep. spec. are not expanded inline
Chris@16 57 #endif
Chris@16 58
Chris@16 59 #endif // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED