That's a few errors and warnings less, but ultimately it is still baffling how
amazingly poor a C++ compiler Microsoft manages to put out :-(
There is clearly nothing wrong with the code itself, to the best of my
knowledge. The best we can do is trying to work around whatever MSVC happens
to be unhappy about, but that's difficult to do unless one has access to the
compiler. I don't understand how the first error shown happens -- if you
compile on the command line (or from the Visual Studio environment), is this
the first error line you get?
Best