From 1e354e44abcbc3a5f6f5dab40c53afd59b84556c Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Wed, 23 Nov 2022 17:04:53 +0100
Subject: [PATCH] Intermediate Commit (2022-11-23 17:04)

---
 emper/Fiber.hpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/emper/Fiber.hpp b/emper/Fiber.hpp
index 741c1bd1..c7b47d6a 100644
--- a/emper/Fiber.hpp
+++ b/emper/Fiber.hpp
@@ -57,17 +57,17 @@ class ALIGN_TO_CACHE_LINE Fiber : public AbstractFiber, public Logger<LogSubsyst
 	Fiber() : Fiber([]() {}) {}
 
  protected:
-	Fiber(fiber_fun_t function, void* arg, workeraffinity_t* affinity)
-			: function(std::move(function)), arg(arg), affinity(affinity){};
+	Fiber(fiber_fun_t function, void* arg, workeraffinity_t* affinity) noexcept
+			: function(std::move_if_noexcept(function)), arg(arg), affinity(affinity) {};
 
 	// cppcheck-suppress uninitMemberVar
-	explicit Fiber(const fiber_fun0_t& function, workeraffinity_t* affinity)
+	explicit Fiber(const fiber_fun0_t& function, workeraffinity_t* affinity) noexcept
 			: Fiber([function](UNUSED_ARG void* arg) { function(); }, nullptr, affinity) {}
 
-	Fiber(fiber_fun_t function, void* arg) : Fiber(std::move(function), arg, nullptr){};
+	Fiber(fiber_fun_t function, void* arg) noexcept : Fiber(std::move(function), arg, nullptr){};
 
 	// cppcheck-suppress uninitMemberVar
-	explicit Fiber(const fiber_fun0_t& function) : Fiber(function, nullptr) {}
+	explicit Fiber(const fiber_fun0_t& function) noexcept : Fiber(function, nullptr) {}
 
 	virtual ~Fiber() = default;
 
-- 
GitLab