Remove register keyword to fix #220

The register keyword leads to a compile error for C++ standards newer
than or equal to C++17.
9 jobs for pr/221 in 90 minutes and 14 seconds (queued for 2 seconds)