Closed vgfl closed 1 year ago
Thanks @vgfl,
Yeah, I am seeing that too with -Wdangling-reference
. I'll take a look at it soon.
At first glance, I think the prime table is being built on the fly. I think we should just precompute it, and put it in a rodata section. The OS can load it into memory if needed, and discard it when not needed.
Once the table is precomputed, we can do away with the Singleton to build it on the fly.
Ok, this should be cleared at Commit 6ecc789df1ce.
Hello there,
A small warning with that file with g++-13.1. Just in the unlikely case it points at something serious:
Thanks!