I don't believe this will cause a problem with VC6 unless the operator< is
implemented as a member function. I say we should go ahead and apply your
fix. nice work!
cheers,
-----
Ben Scott
Research Assistant VRAC
bs...@ia...
On Wed, 29 May 2002, Patrick Hartling wrote:
> I was looking at the shared_ptr implementation in Boost 1.28, and they no
> longer specialize std::less<T> for shared_ptr's. Instead, they overload
> operator<. If I comment out the specialization of std::less<T> and add
> the overloaded operator<, the code compiles and the tests pass. Is this
> a valid change, or will it break something with VC6?
>
> -Patrick
>
> Patrick Hartling wrote:
> > Any idea what would cause this error with Visual Studio 7 when trying to
> > compile xmlparser.cpp?
> >
> > C:\cygwin\home\patrick\juggler\external\cppdom\cppdom\shared_ptr.h(266)
> > : error C2065: 'T' : undeclared identifier
> > C:\cygwin\home\patrick\juggler\external\cppdom\cppdom\shared_ptr.h(266)
> > : error C2687: cannot define a nested UDT of a template class out of line
> > C:\cygwin\home\patrick\juggler\external\cppdom\cppdom\shared_ptr.h(266)
> > : fatal error C1903: unable to recover from previous error(s); stopping
> > compilation
> >
> > -Patrick
> >
> >
>
>
>
>
|