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
16 #ifndef BOOST_CONFIG_HPP
17 # include <boost/config.hpp>
20 #if defined(BOOST_HAS_PRAGMA_ONCE)
24 #include <boost/interprocess/detail/config_begin.hpp>
25 #include <boost/interprocess/detail/workaround.hpp>
27 #ifndef BOOST_NO_EXCEPTIONS
32 namespace interprocess{
35 : public std::exception
39 virtual char const * what() const throw()
40 { return "boost::interprocess::bad_weak_ptr"; }
43 } // namespace interprocess
46 #include <boost/interprocess/detail/config_end.hpp>
48 #endif // #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED