
'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>