| 1031 | }; |
| 1032 | template <typename T> |
| 1033 | struct FuncHolder: HolderBase { |
| 1034 | FuncHolder(T func): func_(std::move(func)) {} |
| 1035 | void operator()() const override { func_(); } |
| 1036 | // The function pointer/reference |
| 1037 | T func_; |
| 1038 | }; |
| 1039 | |
| 1040 | std::unique_ptr<HolderBase> holder_ = nullptr; |
| 1041 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected