Skip to content

Commit 4120ed9

Browse files
srsran: avoid false-alarm warning when compiling static_vector with gcc 13.3.0
1 parent 5147e3b commit 4120ed9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/srsran/adt/static_vector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ struct trivial_storage {
8989
constexpr void construct_(size_t idx, U&& arg0, Args&&... args) noexcept
9090
{
9191
static_assert(std::is_constructible<T, Args...>::value, "T(Args...) does not exist");
92+
srsran_assume(idx < Capacity);
9293
array[idx] = T(std::forward<U>(arg0), std::forward<Args>(args)...);
9394
}
9495

0 commit comments

Comments
 (0)