some toods
This commit is contained in:
parent
d207769de9
commit
2e30696e49
3 changed files with 4 additions and 0 deletions
|
|
@ -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 {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue