bad_weak_ptr.hpp

来自「Boost provides free peer-reviewed portab」· HPP 代码 · 共 45 行

HPP
45
字号
////////////////////////////////////////////////////////////////////////////////// This file is the adaptation for Interprocess of boost/detail/bad_weak_ptr.hpp//// (C) Copyright Peter Dimov and Multi Media Ltd. 2001, 2002, 2003// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost// Software License, Version 1.0. (See accompanying file// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)//// See http://www.boost.org/libs/interprocess for documentation.////////////////////////////////////////////////////////////////////////////////#ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED#define BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED#if defined(_MSC_VER) && (_MSC_VER >= 1020)# pragma once#endif#include <boost/interprocess/detail/config_begin.hpp>#include <boost/interprocess/detail/workaround.hpp>#ifndef BOOST_NO_EXCEPTIONS#include <exception>#endifnamespace boost{namespace interprocess{class bad_weak_ptr   :  public std::exception{   public:   virtual char const * what() const throw()   {  return "boost::interprocess::bad_weak_ptr"; }};} // namespace interprocess } // namespace boost#include <boost/interprocess/detail/config_end.hpp>#endif  // #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?