Skip to content

Commit

Permalink
Initialized func in the build function, delete duplicate defined init…
Browse files Browse the repository at this point in the history
…ialization members
  • Loading branch information
qinzhiben11 committed Nov 8, 2023
1 parent da64496 commit fc12c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArchMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ template<typename T> class BaseMapper {
private:
const std::function<T(RCore *)> func;
public:
BaseMapper(const std::function<T(RCore *)> &func) : func(func) {}
BaseMapper(const std::function<T(RCore *)> &func){}
BaseMapper(const T constant) : func([constant](RCore *core) { return constant; }) {}
T Map(RCore *core) const { return func(core); }
};
Expand Down

0 comments on commit fc12c90

Please sign in to comment.