From f2a1a3f56768d9aa03796808206f067daa5e0aa0 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 21 Oct 2024 17:52:46 +0200 Subject: Working towards proper rpc reference example --- modules/core/c++/templates.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/core') diff --git a/modules/core/c++/templates.hpp b/modules/core/c++/templates.hpp index fc9d368..921fabb 100644 --- a/modules/core/c++/templates.hpp +++ b/modules/core/c++/templates.hpp @@ -11,6 +11,7 @@ namespace saw { template struct tmpl_group { static constexpr string_literal name = "tmpl_group"; + static constexpr uint64_t size = sizeof...(T); }; /** @@ -112,6 +113,14 @@ struct parameter_pack_value { static_assert(i < sizeof...(Values), "Provided index is too large for list"); }; +template +struct tmpl_group_pack_type; + +template +struct tmpl_group_pack_type> { + using type = typename parameter_pack_type::type; +}; + template struct ct_multiply; -- cgit v1.2.3