Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-06-09 11:22:09


Pranckevicius, Tadas wrote:

>I tried to run this example and I got the same results, it prints 8 on
>Microsoft Visual studio 2003 (7.1) as well.
>
>I did try to debug it and ended up in "algorithm" file:
>
>After adding cout:
>
>template<class _FwdIt> inline
> _FwdIt _Max_element(_FwdIt _First, _FwdIt _Last)
> { // find largest element, using operator<
> _DEBUG_RANGE(_First, _Last);
> _FwdIt _Found = _First;
> cout<<*_Found<<endl;
> if (_First != _Last)
> for (; ++_First != _Last;) {
> cout<<*_First <<endl;
> if (_DEBUG_LT(*_Found, *_First))
> _Found = _First;
> }
> return (_Found);
> }
>
>
My Visual Studio.Net 2003 does not even have this function anywhere in
the include directory. What precise version are you using? Have you
replaced your standard library?

Sebastian Redl


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net