Files
boost_smart_ptr/include/boost/smart_ptr/bad_weak_ptr.hpp

49 lines
1.0 KiB
C++
Raw Normal View History

#ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
#define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
//
// boost/smart_ptr/bad_weak_ptr.hpp
//
// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
//
// 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)
//
#include <boost/config.hpp>
#include <exception>
namespace boost
{
#if defined(BOOST_CLANG)
// Intel C++ on Mac defines __clang__ but doesn't support the pragma
2016-08-31 17:32:09 +03:00
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wweak-vtables"
#endif
class bad_weak_ptr: public std::exception
{
public:
char const * what() const noexcept override
{
2006-11-09 12:15:23 +00:00
return "tr1::bad_weak_ptr";
}
};
#if defined(BOOST_CLANG)
2016-08-31 17:32:09 +03:00
# pragma clang diagnostic pop
#endif
} // namespace boost
#endif // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED