Skip to content

Commit

Permalink
use empty message with static assert
Browse files Browse the repository at this point in the history
Add an empty message to static assert in `layout_padded_fwd.hpp` to
avoid use of C++17 extensions when building for C++14.
  • Loading branch information
oliverlee committed Feb 13, 2024
1 parent 42d82ad commit 72b180f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/experimental/__p2642_bits/layout_padded_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ constexpr void check_padded_layout_converting_constructor_mandates()
(extents_type::static_extent(idx) != dynamic_extent) &&
(padding_value != dynamic_extent)) {
if constexpr (padding_value == 0) {
static_assert(_LayoutExtentsType::static_extent(idx) == 0);
static_assert(_LayoutExtentsType::static_extent(idx) == 0, "");
} else {
static_assert(
_LayoutExtentsType::static_extent(idx) % padding_value == 0);
static_assert(_LayoutExtentsType::static_extent(idx) % padding_value == 0, "");
}
}
}
Expand Down

0 comments on commit 72b180f

Please sign in to comment.