Lint cleanup.

This commit is contained in:
gibbed
2020-02-22 13:23:03 -06:00
committed by Rick Gibbed
parent 5aeeed72b9
commit a6e6f0f7bf
5 changed files with 82 additions and 56 deletions

View File

@@ -89,7 +89,8 @@ class Factory {
void Add(const std::string& name,
std::function<std::unique_ptr<T>(Args...)> instantiate) {
Add(name, []() { return true; }, instantiate);
constexpr auto always_available = []() { return true; };
Add(name, always_available, instantiate);
}
template <typename DT>