We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5147e3b commit 4120ed9Copy full SHA for 4120ed9
include/srsran/adt/static_vector.h
@@ -89,6 +89,7 @@ struct trivial_storage {
89
constexpr void construct_(size_t idx, U&& arg0, Args&&... args) noexcept
90
{
91
static_assert(std::is_constructible<T, Args...>::value, "T(Args...) does not exist");
92
+ srsran_assume(idx < Capacity);
93
array[idx] = T(std::forward<U>(arg0), std::forward<Args>(args)...);
94
}
95
0 commit comments