
7 Sep
2004
7 Sep
'04
8:07 p.m.
On Tue, Sep 07, 2004 at 04:31:00PM +0300, Peter Dimov wrote:
Pavol Droba wrote:
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.
This is a compiler bug. Once a class template named distance<> has been introduced at any context, the VC6/7 parser interprets distance< as referring to a class template. This is part of the "implicit typename" heuristic.
I see, thanks for explanation. So then mpl is not buggy. Is my workaround correct? Regards, Pavol