- Windows: the code compiles under MS Visual Studio 2019 with language standard C++17.

- Linux: the command line 
    g++ -std=c++17 -O3 -o asemo2 *.cpp
  should do the job