From 0bf93c56b6fc73e426ff3e680989f77fab211dc4 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 8 Jul 2022 18:31:01 +0200 Subject: [PATCH] Update conditions example. Easy possibility to store condition payloads as std::any. --- DDCore/include/DD4hep/ConditionAny.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDCore/include/DD4hep/ConditionAny.h b/DDCore/include/DD4hep/ConditionAny.h index 124430b38..7eba2ba44 100644 --- a/DDCore/include/DD4hep/ConditionAny.h +++ b/DDCore/include/DD4hep/ConditionAny.h @@ -137,7 +137,7 @@ namespace dd4hep { template <typename PAYLOAD> inline ConditionAny::ConditionAny(const std::string& name, const std::string& type, PAYLOAD&& data) { ConditionAny c(name, type); - c.get() = data; + c.get() = std::move(data); this->m_element = c.ptr(); } -- GitLab