Skip to content

Commit

Permalink
tom added compile-time type check for tabulate
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 15, 2023
1 parent b31621c commit 45b54f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tom/include/tom/concerns/interactswithio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TableRow, std::vector<TableCell>>,
"The InteractsWithIO::TableRow must be the std::vector<TableCell> type.");
#else
/*! Alias for the tabulate row. */
using TableRow = std::vector<TableCell>;
Expand Down

0 comments on commit 45b54f0

Please sign in to comment.