From 08b0f7d128d6a72755b25d330ae51ae78260d13f Mon Sep 17 00:00:00 2001 From: "Reed A. Cartwright" Date: Wed, 21 Sep 2016 17:32:09 -0700 Subject: [PATCH] Patch dng/pool.h to support boost 1.53. Fixes compiling on Centos 7 --- src/include/dng/pool.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/include/dng/pool.h b/src/include/dng/pool.h index 93d5349e..e996b57f 100644 --- a/src/include/dng/pool.h +++ b/src/include/dng/pool.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Reed A. Cartwright + * Copyright (c) 2014-2016 Reed A. Cartwright * Authors: Reed A. Cartwright * * This file is part of DeNovoGear. @@ -24,6 +24,21 @@ #include #include +#if BOOST_VERSION < 105500 +// boost::intrusive::is_safe_autounlink was first defined in version 1.55 +namespace boost { +namespace intrusive { +template +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 {