[OS-tickets] [Optimization Services] #65: OSMatrix.cpp: Conversions between enumeration and floating point values are no longer allowed

Optimization Services coin-trac at coin-or.org
Mon Jan 8 17:16:50 EST 2018


#65: OSMatrix.cpp: Conversions between enumeration and floating point values are
no longer allowed
-----------------------------------------------------+-------------------
 Reporter:  devos                                    |      Owner:
     Type:  defect                                   |     Status:  new
 Priority:  critical                                 |  Milestone:
Component:  other/unknown                            |    Version:  trunk
 Keywords:  OS 2.10, trunk, cl, matrix, enumeration  |
-----------------------------------------------------+-------------------
 When building COIN-OS using MS VS 2008 cl compiler, the following error
 occurs during make: **OSMatrix.cpp: cannot convert from 'double' to
 'ENUM_MATRIX_TYPE'. Conversions between enumeration and floating point
 values are no longer allowed.**

 I resolved the error by editing OS/src/OSCommonInterfaces/OSMatrix.cpp.
 The fix is to cast the double value to int before casting to
 ENUM_MATRIX_TYPE/ENUM_MATRIX_SYMMETRY on lines 3944, 3946, 4044, 4046,
 4144, and 4146. See attached Fix for COIN-OS OSCommonInterfaces in Trunk
 5287.docx.

--
Ticket URL: <https://projects.coin-or.org/OS/ticket/65>
Optimization Services <http://projects.coin-or.org/OS>
An interface for Web services implementing optimization.



More information about the OS-tickets mailing list