Merge pull request #2391 from hzeller/feature-20250414-refine-before-submit

Refine before-submit.sh: also run under c++20 and c++23