From eda3d6d453e6e611217c7a2f347cb83f89c3b926 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 22 Apr 2024 21:15:36 +0200 Subject: [PATCH] Fix clang 12 --- include/podio/Reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/podio/Reader.h b/include/podio/Reader.h index 47141ce8c..29b7969a1 100644 --- a/include/podio/Reader.h +++ b/include/podio/Reader.h @@ -39,7 +39,7 @@ class Reader { podio::Frame readFrame(const std::string& name, size_t index) override { auto maybeFrame = m_reader->readEntry(name, index); if (maybeFrame) { - return maybeFrame; + return std::move(maybeFrame); } throw std::runtime_error("Could not read frame (reading beyond bounds?)"); }