From ef6876adc90b0bc695c31a549f85f27320a3ae2a Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Sun, 18 Nov 2018 15:50:38 +0100 Subject: [PATCH] minor change in type map (easier to register types) --- src/include/ranges/type_map.h | 44 +++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/include/ranges/type_map.h b/src/include/ranges/type_map.h index 9455e38..fb3c608 100644 --- a/src/include/ranges/type_map.h +++ b/src/include/ranges/type_map.h @@ -113,27 +113,31 @@ namespace MultiArrayTools #undef XCOMMAX +#define register_all_types \ + register_type(1) \ + register_type(2) \ + register_type(3) \ + register_type(4) \ + register_type(5) \ + register_type(6) \ + register_type(101) \ + register_type(102) \ + register_type(105) \ + register_type(106) \ + register_type(201) \ + register_type(202) \ + register_type(301) \ + register_type(302) \ + register_type(402) \ + register_type(502) \ + register_type(602) \ + register_type(702) \ + register_type(802) \ + register_type(902) + + #ifdef register_type -register_type(1) -register_type(2) -register_type(3) -register_type(4) -register_type(5) -register_type(6) -register_type(101) -register_type(102) -register_type(105) -register_type(106) -register_type(201) -register_type(202) -register_type(301) -register_type(302) -register_type(402) -register_type(502) -register_type(602) -register_type(702) -register_type(802) -register_type(902) +register_all_types #endif