<br><font size=2 face="sans-serif">Hi all, </font>
<br><font size=2 face="sans-serif">I'm having some problems in compiling
any optimization code which includes &nbsp; &nbsp;osicuts.hpp . </font>
<br>
<br><font size=2 face="sans-serif">The MS VC++ 2005 compiler, complains
on the following definition: </font>
<br>
<br><font size=2 color=#008000 face="Courier New">const OsiCut * OsiCuts::mostEffectiveCutPtr()
const </font>
<br><font size=2 color=#008000 face="Courier New">{ </font>
<br><font size=2 color=#008000 face="Courier New">&nbsp; const_iterator
b=begin();</font>
<br><font size=2 color=#008000 face="Courier New">&nbsp; const_iterator
e=end();</font>
<br><font size=2 color=#008000 face="Courier New">&nbsp; return *(std::min_element(b,e,OsiCutCompare()));</font>
<br><font size=2 color=#008000 face="Courier New">}</font>
<br>
<br><font size=2 face="sans-serif">and the issue ssems to be that <b>b</b>
and <b>e</b> are not of </font><font size=2 face="Fixedsys">iterator class</font><font size=2 face="sans-serif">,
as expected, but &nbsp;are const_iterator and the compiler does not know
how to treat them </font>
<br>
<br><font size=2 face="sans-serif">These are the first few error lines
issued by the compiler</font>
<br>
<br><font size=2 face="Fixedsys">mpp_CoinSetupIp.cpp</font>
<br><font size=2 face="Fixedsys">d:\program files\microsoft visual studio
8\vc\include\xutility(572) : error C2039: 'iterator_category' : is not
a member of 'OsiCuts::const_iterator'</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; e:\coin\include\osicuts.hpp(77)
: see declaration of 'OsiCuts::const_iterator'</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; d:\program
files\microsoft visual studio 8\vc\include\xutility(1368) : see reference
to class template instantiation 'std::iterator_traits&lt;_Iter&gt;' being
compiled</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; with</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; [</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_Iter=OsiCuts::const_iterator</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; ]</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; d:\program
files\microsoft visual studio 8\vc\include\algorithm(3819) : see reference
to function template instantiation 'void std::_Debug_range&lt;_FwdIt&gt;(_InIt,_InIt,const
wchar_t *,unsigned int)' being compiled</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; with</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; [</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_InIt=OsiCuts::const_iterator</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; ]</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; d:\program
files\microsoft visual studio 8\vc\include\algorithm(3833) : see reference
to function template instantiation '_FwdIt std::_Min_element&lt;_FwdIt,_Pr&gt;(_FwdIt,_FwdIt,_Pr)'
being compiled</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; with</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; [</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_Pr=OsiCuts::OsiCutCompare</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; ]</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; e:\coin\include\osicuts.hpp(367)
: see reference to function template instantiation '_FwdIt std::min_element&lt;OsiCuts::const_iterator,OsiCuts::OsiCutCompare&gt;(_FwdIt,_FwdIt,_Pr)'
being compiled</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; with</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; [</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
_Pr=OsiCuts::OsiCutCompare</font>
<br><font size=2 face="Fixedsys">&nbsp; &nbsp; &nbsp; &nbsp; ]</font>
<br>
<br><font size=2 face="sans-serif">If I comment out completely this method,
all the OSI libraries compile fine. </font>
<br>
<br><font size=2 face="sans-serif">Anyone had the same problem ? </font>
<br>
<br><font size=2 face="sans-serif">Best regards, </font>
<br><font size=2 face="sans-serif">Stefano Gliozzi</font>
<br>
<br><font size=2 face="sans-serif">Managing Consultant <br>
IBM Business Consulting Services<br>
Ph. +39-06-596-65477, &nbsp; Mobile +39-335-7389709<br>
Fax. +39-06-596-65477<br>
e-mail: stefano_gliozzi @ it.ibm.com<br>
mail: Via Sciangai, 53 - 00144 Roma - ITALY</font>