Skip to content

Commit

Permalink
Add a static_assert to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Jan 23, 2023
1 parent 52b7d9e commit 2689f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/highfive/bits/H5Converter_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ struct inspector<std::vector<T>> {
using base_type = typename inspector<value_type>::base_type;
using hdf5_type = typename inspector<value_type>::hdf5_type;

static_assert(!std::is_same<bool, value_type>::value, "std::vector<bool> is not supported");

static constexpr size_t ndim = 1;
static constexpr size_t recursive_ndim = ndim + inspector<value_type>::recursive_ndim;
static constexpr bool is_trivially_copyable = std::is_trivially_copyable<value_type>::value &&
Expand Down

0 comments on commit 2689f58

Please sign in to comment.