Skip to content

Commit

Permalink
Merge pull request ultimatesource#192 from reedacartwright/feature/bo…
Browse files Browse the repository at this point in the history
…ost153-support

Patch dng/pool.h to support boost 1.53. Fixes compiling on Centos 7
  • Loading branch information
reedacartwright authored Sep 22, 2016
2 parents 5c0a3e7 + 08b0f7d commit 8a5b064
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/include/dng/pool.h
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.
Expand All @@ -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 {
Expand Down

0 comments on commit 8a5b064

Please sign in to comment.