1 //////////////////////////////////////////////////////////////////////////////
3 // This file is the adaptation for Interprocess of boost/detail/bad_weak_ptr.hpp
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)
10 // See http://www.boost.org/libs/interprocess for documentation.
12 //////////////////////////////////////////////////////////////////////////////
13 #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED
14 #define BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED
20 #include <boost/interprocess/detail/config_begin.hpp>
21 #include <boost/interprocess/detail/workaround.hpp>
23 #ifndef BOOST_NO_EXCEPTIONS
28 namespace interprocess{
31 : public std::exception
35 virtual char const * what() const throw()
36 { return "boost::interprocess::bad_weak_ptr"; }
39 } // namespace interprocess
42 #include <boost/interprocess/detail/config_end.hpp>
44 #endif // #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED