From ef9a7d22303cd3d81d5ec82bab4ac614a25031b9 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 11 May 2016 17:23:37 +0200 Subject: [PATCH] base: remove length limit of Type_list --- repos/base/include/util/meta.h | 36 ++++++---------------------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/repos/base/include/util/meta.h b/repos/base/include/util/meta.h index 17333d5f9..53256f75c 100644 --- a/repos/base/include/util/meta.h +++ b/repos/base/include/util/meta.h @@ -87,41 +87,17 @@ namespace Genode { /** * Type list with variable number of types */ - template + template struct Type_list; template <> - struct Type_list { typedef Empty Head; }; + struct Type_list<> { typedef Empty Head; }; - template - struct Type_list : public Type_tuple { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; - - template - struct Type_list : public Type_tuple > { }; + template + struct Type_list : Type_tuple { }; + template + struct Type_list : Type_tuple > { }; /** * Macro for wrapping the 'Type_list' template