Hi Dago,

Dagobert Michelsen wrote:
I have a failing compile on Solaris 10 Sparc with Sun Studio 12:

/opt/SUNWspro/bin/CC -I/opt/csw/include -xO3 -m32 -xarch=sparc -c -o zupdate.o 
zupdate.cc
"zupdate.cc", line 283: Error: Overloading ambiguity between "std::string::insert(char*, 
unsigned, char)" and "std::string::insert(unsigned, unsigned, char)".

Thank you very much for reporting this.

It seems that the Sun compiler requires '0U' to resolve the ambiguity in the call to 'insert':

-  zcmp_command.resize( i ); zcmp_command.insert( 0, 1, '\'' );
+  zcmp_command.resize( i ); zcmp_command.insert( 0U, 1, '\'' );

This fix will be in the stable 1.9.

Best regards,
Antonio.

Reply via email to