The issue turned out to be that Visual Studio 2019 (latest version as of this post) does not like the use of std::min where it was being used in refl.hpp. (EDIT) I had replaced it with simple C code but have subsequently realized that the problem is that the Windows include files don't work with std::min/max without the inclusion of #define NOMINMAX. So now the change is just to put std::min in parentheses, which fixes the problem on Windows without the #define and continues to work on other platforms.
This pull request resolves #52.
The issue turned out to be that Visual Studio 2019 (latest version as of this post) does not like the use of
std::min
where it was being used inrefl.hpp
. (EDIT) I had replaced it with simple C code but have subsequently realized that the problem is that the Windows include files don't work withstd::min/max
without the inclusion of#define NOMINMAX
. So now the change is just to putstd::min
in parentheses, which fixes the problem on Windows without the#define
and continues to work on other platforms.