[icinga-checkins] icinga.org: icinga2/master: Add another rvalue constructor for the Value class

git at icinga.org git at icinga.org
Fri Aug 26 18:12:39 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Aug 26 18:11:28 2016 +0200

Add another rvalue constructor for the Value class

refs #12555

---

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

diff --git a/lib/base/value.hpp b/lib/base/value.hpp
index 52a03b1..48c8a63 100644
--- a/lib/base/value.hpp
+++ b/lib/base/value.hpp
@@ -91,6 +91,10 @@ public:
 		: m_Value(value)
 	{ }
 
+	inline Value(String&& value)
+		: m_Value(value)
+	{ }
+
 	inline Value(const char *value)
 		: m_Value(String(value))
 	{ }



More information about the icinga-checkins mailing list