PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/signals2/expired_slot.hpp

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