The following code:

#include <vector>
#include <xercesc/util/XMLURL.hpp>

using namespace std;
XERCES_CPP_NAMESPACE_USE

int main()
{
 vector<XMLURL> urls(1, XMLURL());
 return 0;
}

fails to compile under Visual C++ 2003 (VC_7_1) using xerces-c 2.6.0. It gives the error:

C2665: 'xercesc_2_6::XMemory::operator new' : none of the 3 overloads can convert parameter 2 from type 'void *'

Apparently the same code compiles fine under gcc 3.4.3 and xerces-c 2.6.0. The same problem occurs with XMLUri (and presumably any class derived from XMemory). If vector is changed to list, then it compiles.

Any suggestions?

Sam


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to