doc: get rid of redundant TODO tag in FuzzedDataProvider.h (#137395)

'list.size()' is determined at runtime, so using static_assert on it as
suggested by the TODO comment is not feasible and produces the following
error when done:

error: static assertion expression is not an integral constant
expression

initially referenced in https://github.com/bitcoin/bitcoin/pull/32024

Co-authored-by: Chand-ra <chandrapratap376@gmail.com>
This commit is contained in:
kevkevin 2025-04-25 16:51:10 -05:00 committed by GitHub
parent 9b74dce4a3
commit 8cd628f472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,6 @@ T FuzzedDataProvider::PickValueInArray(const std::array<T, size> &array) {
template <typename T>
T FuzzedDataProvider::PickValueInArray(std::initializer_list<const T> list) {
// TODO(Dor1s): switch to static_assert once C++14 is allowed.
if (!list.size())
abort();