I'm using Cereal via mlpack, and my project compiles fine on Linux, but with Visual Studio, I'm getting a lot of errors in rapidxml.hpp. Specifically:
error C2059: syntax error: '<parameter-list>' [C:\Users\rjzak\CLionProjects\my-project\cmake-build-release\my-project.vcxproj]
(compiling source file '../src/mycode.cpp')
C:\Users\rjzak\CLionProjects\my-project\cmake-build-release\vcpkg_installed\x64-windows\include\cereal\external\rapidxml\rapidxml.hpp(398,23):
the template instantiation context (the oldest one first) is
C:\Users\rjzak\CLionProjects\my-project\cmake-build-release\vcpkg_installed\x64-windows\include\cereal\external\rapidxml\rapidxml.hpp(392,11):
while compiling class template 'cereal::rapidxml::memory_pool'
error C2064: term does not evaluate to a function taking 1 arguments [C:\Users\rjzak\CLionProjects\my-project\cmake-build-release\my-project.vcxproj]
(compiling source file '../src/mycode.cpp')
C:\Users\rjzak\CLionProjects\my-project\cmake-build-release\vcpkg_installed\x64-windows\include\cereal\external\rapidxml\rapidxml.hpp(598,38):
'm_alloc_func': function declaration must be available as none of the arguments depend on a template parameter
Going further, it seems MSVC is complaining about invalid tokens before; in typedef void *(alloc_func)(std::size_t);, and that this type does not specify a function which takes one argument.
I'm using Cereal via mlpack, and my project compiles fine on Linux, but with Visual Studio, I'm getting a lot of errors in
rapidxml.hpp
. Specifically:Going further, it seems MSVC is complaining about invalid tokens before
;
intypedef void *(alloc_func)(std::size_t);
, and that this type does not specify a function which takes one argument.Details: