[build] need a cast...

This commit is contained in:
Timothy Stack 2021-01-23 13:54:07 -08:00
parent 775d2443a6
commit 50b63559ce
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ struct bind_multiple : multiple_storage<T> {
}
bind<I, Annotations...>::to_instance(single.get());
multiple_storage<T>::get_factories()[typeid(I).name()] = [single]() {
return single;
return std::static_pointer_cast<T>(single);
};
return *this;