expired_slot.hpp 731 B

12345678910111213141516171819202122232425262728293031
  1. // Boost.Signals2 library
  2. // Copyright Frank Mori Hess 2007-2010.
  3. // Use, modification and
  4. // distribution is subject to the Boost Software License, Version
  5. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. // For more information, see http://www.boost.org
  8. #ifndef BOOST_SIGNALS2_EXPIRED_SLOT_HPP
  9. #define BOOST_SIGNALS2_EXPIRED_SLOT_HPP
  10. #include <boost/smart_ptr/bad_weak_ptr.hpp>
  11. namespace boost
  12. {
  13. namespace signals2
  14. {
  15. class expired_slot: public bad_weak_ptr
  16. {
  17. public:
  18. virtual char const * what() const throw()
  19. {
  20. return "boost::signals2::expired_slot";
  21. }
  22. };
  23. }
  24. } // end namespace boost
  25. #endif // BOOST_SIGNALS2_EXPIRED_SLOT_HPP