Fix compiler warning

This commit is contained in:
sha512sum 2024-06-27 04:39:42 +00:00
parent 32833faec2
commit c86fbbd823
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View file

@ -384,7 +384,9 @@ struct ServiceContextBuilder {
template <utempl::ConstexprString name>
static consteval auto FindComponent() {
if constexpr(name == kBasicTaskProcessorName) {
return [] -> engine::basic::TaskProcessor<config.template Get<"threads">() - 1> {}();
return [] -> engine::basic::TaskProcessor<config.template Get<"threads">() - 1> {
std::unreachable();
}();
} else {
return []<typename... TTs, utempl::ConstexprString... names, Options... Options>
(const ServiceContextBuilder<config, ComponentConfig<names, TTs, Options>...>&)