From: Patrick H. <pa...@13...> - 2002-05-29 18:57:43
|
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 > > -- Patrick L. Hartling | Research Assistant, VRAC pa...@13... | 2624 Howe Hall -- (515)294-4916 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ |