
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.
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