From 45b54f05a0b8e4d1c7264cbc61f21081054cc035 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sat, 15 Apr 2023 15:10:51 +0200 Subject: [PATCH] tom added compile-time type check for tabulate --- tom/include/tom/concerns/interactswithio.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tom/include/tom/concerns/interactswithio.hpp b/tom/include/tom/concerns/interactswithio.hpp index 10568ff89..7b70990e1 100644 --- a/tom/include/tom/concerns/interactswithio.hpp +++ b/tom/include/tom/concerns/interactswithio.hpp @@ -62,6 +62,9 @@ namespace Concerns #if TINY_TABULATE_VERSION >= QT_VERSION_CHECK(1, 5, 0) /*! Alias for the tabulate row. */ using TableRow = tabulate::Table::Row_t; + // Check the type because we have no control over this type + static_assert (std::is_same_v>, + "The InteractsWithIO::TableRow must be the std::vector type."); #else /*! Alias for the tabulate row. */ using TableRow = std::vector;