[icinga-checkins] icinga.org: icinga2/master: Fix compatibility with boost <= 1.53

git at icinga.org git at icinga.org
Sat Aug 27 12:35:31 CEST 2016


Module: icinga2
Branch: master
Commit: 22cabb50ab98eac4ee247518be1db86a6c86a58a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=22cabb50ab98eac4ee247518be1db86a6c86a58a

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Aug 27 12:35:05 2016 +0200

Fix compatibility with boost <= 1.53

refs #12555

---

 lib/base/value.hpp |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/base/value.hpp b/lib/base/value.hpp
index 5beba9e..22620ba 100644
--- a/lib/base/value.hpp
+++ b/lib/base/value.hpp
@@ -100,7 +100,15 @@ public:
 	{ }
 
 	Value(const Value& other) = default;
+
+#if BOOST_VERSION >= 105400
 	Value(Value&& other) = default;
+#else /* BOOST_VERSION */
+	Value(Value&& other)
+	{
+		m_Value.swap(other.m_Value);
+	}
+#endif /* BOOST_VERSION */
 
 	inline Value(Object *value)
 	{



More information about the icinga-checkins mailing list