From c4f4c5b3842b689c65a802d492df96a631d673ad Mon Sep 17 00:00:00 2001 From: Grzegorz Nosek Date: Fri, 13 Dec 2024 12:35:20 +0100 Subject: [PATCH] fix(sinsp): add explicit instantiations for table_accessor::set Signed-off-by: Grzegorz Nosek --- userspace/libsinsp/state/table.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/userspace/libsinsp/state/table.cpp b/userspace/libsinsp/state/table.cpp index cc938e3bac..e0cf069ced 100644 --- a/userspace/libsinsp/state/table.cpp +++ b/userspace/libsinsp/state/table.cpp @@ -168,6 +168,30 @@ void libsinsp::state::table_accessor::set(sinsp_table_owner* p, libsinsp::state: input.key_type = m_table->key_info().type_id(); } +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set( + sinsp_table_owner* p, + libsinsp::state::table* t); +template void libsinsp::state::table_accessor::set(sinsp_table_owner* p, + libsinsp::state::table* t); +// Do not instantiate the template for libsinsp::state::base_table* since a table cannot be used +// as a key for another table + void libsinsp::state::table_accessor::unset() { m_owner_plugin = nullptr; m_table = nullptr;