some toods

This commit is contained in:
Barrett Ruth 2025-10-05 00:30:49 -04:00
parent d207769de9
commit 2e30696e49
3 changed files with 4 additions and 0 deletions

View file

@ -40,6 +40,7 @@ class Eratosthenes : public Sieve<Eratosthenes<Limit>, Limit> {
[[nodiscard]] constexpr bool operator[](size_t const number) const {
if consteval {
// TODO: does/can this run at compile time?
if (number > Limit) {
throw std::out_of_range(
std::format("cannot determine primality of {} > size of sieve {}",