Re: Bug#178525: looking for help building xdelta2 with g++ 3.3
Well, next stop: the code makes use of the ostream::form() GNU
extension, which has been removed. There seem to be no replacement in
the standard. I tried to play with std::ostringstream, which seems to
require some heavy manipulations involving ostringstream::setf() and
such - however, I could even not switch to hex output in a sample
program, the following outputs in decimal:
#include <sstream>
#include <iostream>
int main(void)
{
std::ostringstream os;
os.setf (std::ios_base::hex);
os << 132;
std::cout << os.str() << std::endl;
}
Could anybody give some advice ? Should I just use the good old
snprintf() ? That would be a shame to do that in a C++ program, but
hey...
--
Yann Dirson <ydirson@altern.org> | Why make M$-Bill richer & richer ?
Debian-related: <dirson@debian.org> | Support Debian GNU/Linux:
Pro: <yann.dirson@fr.alcove.com> | Freedom, Power, Stability, Gratuity
http://ydirson.free.fr/ | Check <http://www.debian.org/>
Reply to: