[Cgl-tickets] [COIN-OR Cut Generator Library] #13: CglRedSplit does not compile with MV Visual Studio Version 6.

COIN-OR Cut Generator Library coin-trac at coin-or.org
Wed Apr 11 10:54:36 EDT 2007


#13: CglRedSplit does not compile with MV Visual Studio Version 6.
----------------------+-----------------------------------------------------
 Reporter:  jpfasano  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:          
Component:  Cgl       |     Version:  trunk   
 Keywords:            |  
----------------------+-----------------------------------------------------
 An instance of the specific error message is:

 {{{
 d:\coin\coin-cbc-all\trunk\cgl\src\cglredsplit\cglredsplitdata.hpp(57) :
 error C2555: 'CglRedSplitData::clone' : overriding virtual function
 differs from 'CglData::clone' only by return type or calling
 convention[[BR]]
 d:\coin\coin-cbc-all\trunk\cgl\src\cgldata.hpp(25) : see declaration of
 'CglData'
 }}}

 The problem is that !CglRedSplitData.hpp has:[[BR]]

 {{{
 virtual CglRedSplitData* clone() const;
 }}}
 and !CglData.hpp has[[BR]]
 {{{
 virtual CglData* clone() const;
 }}}

 The compiler is complaining because the return types are different.
 The original C++ standard required the return types to be the same.
 More recently this requirement was relaxed.
 The Version 6 compiler follows the older standard.[[BR]]

 Since the other cuts don't exhibit this compile time problem, it would
 seem that they have been implemented following the older standard.[[BR]]

 Cbc is now using the !RedSplit cut, so this compiler error is preventing
 Cbc from being used with the Version 6 compiler. Perhaps it is time to
 abandon support for the Version 6 compiler?

-- 
Ticket URL: <https://projects.coin-or.org/Cgl/ticket/13>
COIN-OR Cut Generator Library <http://projects.coin-or.org/Cgl>
A library of mixed-integer programming cutting plane generators.



More information about the Cgl-tickets mailing list