Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2004-09-07 07:54:50


On Tue, Sep 07, 2004 at 07:20:12AM -0500, Aleksey Gurtovoy wrote:
> Pavol Droba writes:
> > Hi,
> >
> > After merging the new MPL version, an error popped out in vc7 tests of
> > string_algo lib.
> >
> > http://tinyurl.com/3t6zc
> >
> > It seems that std::distance is conflicting with something else. I'm using both
> > "using namespace std;" and "using namespace boost;" in the tests.
>
> Pavol,
>
> I don't see anything MPL-related in the output from the link above:
>
> find_test.cpp
> ..\libs\algorithm\string\test\find_test.cpp(52) : error C2275: 'std::basic_string<_Elem,_Traits,_Ax>::const_iterator' : illegal use
> of this type as an expression
> with
> [
> _Elem=char,
> _Traits=std::char_traits<char>,
> _Ax=std::allocator<char>
> ]
> ..\libs\algorithm\string\test\find_test.cpp(57) : error C2275: 'std::basic_string<_Elem,_Traits,_Ax>::const_iterator' : illegal use
> of this type as an expression
> with
> [
> _Elem=char,
> _Traits=std::char_traits<char>,
> _Ax=std::allocator<char>
> ]
>
> [...]
>
>
> Did the errors you've talked about go away, or am I missing something?
>

I might be wrong, but this error was not there before the change of the mpl. If you have a look into the code,
the errors are shown at std::distance<> with explicit type specification. I assumed, that there migh be a conflict
with mpl::distance.

I have checked in a version with explicit std:: qualification. If it will help, it will confirm, that there is
some conflict there.

Regards,

Pavol


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk