bad_weak_ptr.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // This file is the adaptation for Interprocess of boost/detail/bad_weak_ptr.hpp
  4. //
  5. // (C) Copyright Peter Dimov and Multi Media Ltd. 2001, 2002, 2003
  6. // (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost
  7. // Software License, Version 1.0. (See accompanying file
  8. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // See http://www.boost.org/libs/interprocess for documentation.
  11. //
  12. //////////////////////////////////////////////////////////////////////////////
  13. #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED
  14. #define BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED
  15. #ifndef BOOST_CONFIG_HPP
  16. # include <boost/config.hpp>
  17. #endif
  18. #
  19. #if defined(BOOST_HAS_PRAGMA_ONCE)
  20. # pragma once
  21. #endif
  22. #include <boost/interprocess/detail/config_begin.hpp>
  23. #include <boost/interprocess/detail/workaround.hpp>
  24. #ifndef BOOST_NO_EXCEPTIONS
  25. #include <exception>
  26. #endif
  27. namespace boost{
  28. namespace interprocess{
  29. class bad_weak_ptr
  30. : public std::exception
  31. {
  32. public:
  33. virtual char const * what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE
  34. { return "boost::interprocess::bad_weak_ptr"; }
  35. };
  36. } // namespace interprocess
  37. } // namespace boost
  38. #include <boost/interprocess/detail/config_end.hpp>
  39. #endif // #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED