forked from ultimatesource/denovogear
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ultimatesource#192 from reedacartwright/feature/bo…
…ost153-support Patch dng/pool.h to support boost 1.53. Fixes compiling on Centos 7
- Loading branch information
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2014 Reed A. Cartwright | ||
* Copyright (c) 2014-2016 Reed A. Cartwright | ||
* Authors: Reed A. Cartwright <[email protected]> | ||
* | ||
* This file is part of DeNovoGear. | ||
|
@@ -24,6 +24,21 @@ | |
#include <boost/intrusive/list.hpp> | ||
#include <boost/noncopyable.hpp> | ||
|
||
#if BOOST_VERSION < 105500 | ||
// boost::intrusive::is_safe_autounlink was first defined in version 1.55 | ||
namespace boost { | ||
namespace intrusive { | ||
template <link_mode_type link_mode> | ||
struct is_safe_autounlink | ||
{ | ||
static const bool value = | ||
(int)link_mode == (int)auto_unlink || | ||
(int)link_mode == (int)safe_link; | ||
}; | ||
} | ||
} | ||
#endif | ||
|
||
namespace dng { | ||
|
||
namespace detail { | ||
|