<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 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"> const_iterator
b=begin();</font>
<br><font size=2 color=#008000 face="Courier New"> const_iterator
e=end();</font>
<br><font size=2 color=#008000 face="Courier New"> 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 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"> e:\coin\include\osicuts.hpp(77)
: see declaration of 'OsiCuts::const_iterator'</font>
<br><font size=2 face="Fixedsys"> d:\program
files\microsoft visual studio 8\vc\include\xutility(1368) : see reference
to class template instantiation 'std::iterator_traits<_Iter>' being
compiled</font>
<br><font size=2 face="Fixedsys"> with</font>
<br><font size=2 face="Fixedsys"> [</font>
<br><font size=2 face="Fixedsys">
_Iter=OsiCuts::const_iterator</font>
<br><font size=2 face="Fixedsys"> ]</font>
<br><font size=2 face="Fixedsys"> d:\program
files\microsoft visual studio 8\vc\include\algorithm(3819) : see reference
to function template instantiation 'void std::_Debug_range<_FwdIt>(_InIt,_InIt,const
wchar_t *,unsigned int)' being compiled</font>
<br><font size=2 face="Fixedsys"> with</font>
<br><font size=2 face="Fixedsys"> [</font>
<br><font size=2 face="Fixedsys">
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">
_InIt=OsiCuts::const_iterator</font>
<br><font size=2 face="Fixedsys"> ]</font>
<br><font size=2 face="Fixedsys"> d:\program
files\microsoft visual studio 8\vc\include\algorithm(3833) : see reference
to function template instantiation '_FwdIt std::_Min_element<_FwdIt,_Pr>(_FwdIt,_FwdIt,_Pr)'
being compiled</font>
<br><font size=2 face="Fixedsys"> with</font>
<br><font size=2 face="Fixedsys"> [</font>
<br><font size=2 face="Fixedsys">
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">
_Pr=OsiCuts::OsiCutCompare</font>
<br><font size=2 face="Fixedsys"> ]</font>
<br><font size=2 face="Fixedsys"> e:\coin\include\osicuts.hpp(367)
: see reference to function template instantiation '_FwdIt std::min_element<OsiCuts::const_iterator,OsiCuts::OsiCutCompare>(_FwdIt,_FwdIt,_Pr)'
being compiled</font>
<br><font size=2 face="Fixedsys"> with</font>
<br><font size=2 face="Fixedsys"> [</font>
<br><font size=2 face="Fixedsys">
_FwdIt=OsiCuts::const_iterator,</font>
<br><font size=2 face="Fixedsys">
_Pr=OsiCuts::OsiCutCompare</font>
<br><font size=2 face="Fixedsys"> ]</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, 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>