poly: suppress warnings for unused variables
This commit is contained in:
1
TODO
1
TODO
@@ -18,6 +18,7 @@
|
||||
- ...
|
||||
|
||||
WIP:
|
||||
* HP: test, enable warnings for unused variables
|
||||
* HP: headless (sparse set only) view
|
||||
* HP: pass the registry to pools, basic poly storage should have only component member
|
||||
* HP: make view pack work also with groups, make packs input iterator only, add view adapter for external sources
|
||||
|
||||
@@ -79,7 +79,7 @@ class poly_vtable {
|
||||
|
||||
template<typename Type, auto Candidate, typename Ret, typename Any, typename... Args>
|
||||
static void fill_vtable_entry(Ret(* &entry)(Any &, Args...)) {
|
||||
entry = +[](Any &any, Args... args) -> Ret {
|
||||
entry = +[]([[maybe_unused]] Any &any, Args... args) -> Ret {
|
||||
if constexpr(std::is_invocable_r_v<Ret, decltype(Candidate), Args...>) {
|
||||
return std::invoke(Candidate, std::forward<Args>(args)...);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user