It's not really an bug from fmi4cpp.
But under visual studio I get syntax error at line 104 of fmi2/xml/typed_scalar_variable.hpp when I try to include fmi4cpp.hpp in my project.
The problem is caused by the minwindef.h that define min and max macros, which break the bounded_scalar_variable::min().
One of the solution is to include fmi4cpp.hpp earlier or define NOMINMAX as suggest here
Though I put a message here in case it help others like me that were not familiar with this windows macro.
It's not really an bug from fmi4cpp. But under visual studio I get syntax error at line 104 of fmi2/xml/typed_scalar_variable.hpp when I try to include fmi4cpp.hpp in my project. The problem is caused by the minwindef.h that define min and max macros, which break the bounded_scalar_variable::min(). One of the solution is to include fmi4cpp.hpp earlier or define NOMINMAX as suggest here
Though I put a message here in case it help others like me that were not familiar with this windows macro.