9429613492d9cc99b84ee6d9b66a0bf551e922aa
[platform/upstream/boost.git] / boost / interprocess / smart_ptr / detail / bad_weak_ptr.hpp
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
16 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
17 # pragma once
18 #endif
19
20 #include <boost/interprocess/detail/config_begin.hpp>
21 #include <boost/interprocess/detail/workaround.hpp>
22
23 #ifndef BOOST_NO_EXCEPTIONS
24 #include <exception>
25 #endif
26
27 namespace boost{
28 namespace interprocess{
29
30 class bad_weak_ptr
31    :  public std::exception
32 {
33    public:
34
35    virtual char const * what() const throw()
36    {  return "boost::interprocess::bad_weak_ptr"; }
37 };
38
39 } // namespace interprocess 
40 } // namespace boost
41
42 #include <boost/interprocess/detail/config_end.hpp>
43
44 #endif  // #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED