I am current working on upgrading engine from 16.1 to 17.0. After I upgrading all the header files, I found my module cannot compile due to the line of code in datatypes.h as follows:
Variant& operator =(const Property& other) { operator = ((Variant)other); return *this; }
The error message is as follows:
error C2440: 'type cast': cannot convert from 'const FlexSim::Property' to 'FlexSim::Variant'
I can make it compile either by commenting out this line or change this line to be
Variant& operator =(const Property& other) { operator = ((const Variant&)other); return *this; }
Is this a bug? Or there are reasons for this? How to make it compile without changing any header code?
Thanks, Hao