From fc12c90da692dbde41571764b9428d783cc53bc3 Mon Sep 17 00:00:00 2001 From: qinzhiben Date: Wed, 8 Nov 2023 10:57:30 +0800 Subject: [PATCH] Initialized func in the build function, delete duplicate defined initialization members --- src/ArchMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArchMap.cpp b/src/ArchMap.cpp index 5ec15abf..6e8bccf7 100644 --- a/src/ArchMap.cpp +++ b/src/ArchMap.cpp @@ -15,7 +15,7 @@ template class BaseMapper { private: const std::function func; public: - BaseMapper(const std::function &func) : func(func) {} + BaseMapper(const std::function &func){} BaseMapper(const T constant) : func([constant](RCore *core) { return constant; }) {} T Map(RCore *core) const { return func(core); } };