[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Zutils-bug] Zutils 1.9 released
From: |
Dagobert Michelsen |
Subject: |
Re: [Zutils-bug] Zutils 1.9 released |
Date: |
Fri, 3 Jul 2020 10:24:11 +0200 |
Hi Antonio,
Am 02.07.2020 um 23:30 schrieb Antonio Diaz Diaz <antonio@gnu.org>:
>> /opt/SUNWspro/bin/CC -I/opt/csw/include -xO3 -m64 -xarch=sparc -c -o
>> zupdate.o zupdate.cc
>> "zupdate.cc", line 283: Error: Overloading ambiguity between
>> "std::string::insert(char*, unsigned long, char)" and
>> "std::string::insert(unsigned long, unsigned long, char)".
>
> I thought I had fixed this "problem" more than a month ago!
> http://lists.nongnu.org:443/archive/html/zutils-bug/2020-05/msg00002.html
>
> - zcmp_command.resize( i ); zcmp_command.insert( 0, 1, '\'' );
> + zcmp_command.resize( i ); zcmp_command.insert( 0U, 1, '\'' );
>
> '0' is not a valid iterator. '0U' is even less valid as a iterator. What does
> the Sun compiler want me to write, 'static_cast<std::string::size_type>(0)'?
>
> Please, can you try the following line? If it works, I'll put it in the next
> version of zupdate.
>
> zcmp_command.resize( i ); zcmp_command.insert( zcmp_command.begin(), '\'' );
Yes, this works.
Best regards
— Dago
--
"You don't become great by trying to be great, you become great by wanting to
do something,
and then doing it so hard that you become great in the process." - xkcd #896