comparison DEPENDENCIES/generic/include/boost/log/utility/intrusive_ref_counter.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 /*
2 * Copyright Andrey Semashev 2007 - 2013.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
6 */
7 /*!
8 * \file intrusive_ref_counter.hpp
9 * \author Andrey Semashev
10 * \date 12.03.2009
11 *
12 * This header is deprecated, use boost/smart_ptr/intrusive_ref_counter.hpp instead. The header is left for
13 * backward compatibility and will be removed in future versions.
14 */
15
16 #ifndef BOOST_LOG_UTILITY_INTRUSIVE_REF_COUNTER_HPP_INCLUDED_
17 #define BOOST_LOG_UTILITY_INTRUSIVE_REF_COUNTER_HPP_INCLUDED_
18
19 #include <boost/smart_ptr/intrusive_ptr.hpp>
20 #include <boost/smart_ptr/intrusive_ref_counter.hpp>
21 #include <boost/log/detail/config.hpp>
22 #include <boost/log/detail/header.hpp>
23
24 #ifdef BOOST_HAS_PRAGMA_ONCE
25 #pragma once
26 #endif
27
28 #if defined(__GNUC__)
29 #pragma message "Boost.Log: This header is deprecated, use boost/smart_ptr/intrusive_ref_counter.hpp instead."
30 #elif defined(_MSC_VER)
31 #pragma message("Boost.Log: This header is deprecated, use boost/smart_ptr/intrusive_ref_counter.hpp instead.")
32 #endif
33
34 namespace boost {
35
36 BOOST_LOG_OPEN_NAMESPACE
37
38 namespace aux {
39
40 struct legacy_intrusive_ref_counter_root
41 {
42 virtual ~legacy_intrusive_ref_counter_root() {}
43 };
44
45 } // namespace aux
46
47 typedef boost::intrusive_ref_counter< aux::legacy_intrusive_ref_counter_root > intrusive_ref_counter;
48
49 BOOST_LOG_CLOSE_NAMESPACE // namespace log
50
51 } // namespace boost
52
53 #include <boost/log/detail/footer.hpp>
54
55 #endif // BOOST_LOG_UTILITY_INTRUSIVE_REF_COUNTER_HPP_INCLUDED_