In FC7, the line"
... cout << "a = 0x" << setfill('0') << hex << noshowbase << setw(8) << a << dec << setfill(' ') << endl; ...
results in:
a = 0x0x91a1218
Is there something I can do about this?
Thanks, Mike.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mike -- EMAIL IGNORED wrote:
Is there something I can do about this?
Use an actually supported version of the compiler and runtime. Later versions (at least F9) don't have this problem.
- -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
On Tue, 03 Feb 2009 12:10:17 -0800, Ulrich Drepper wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mike -- EMAIL IGNORED wrote:
Is there something I can do about this?
Use an actually supported version of the compiler and runtime. Later versions (at least F9) don't have this problem.
[...]
Upgrading would be a problem for now. Is there any other solution?
Thanks, Mike.
Mike -- EMAIL IGNORED wrote, On 02/03/2009 02:47 PM:
In FC7, the line"
... cout << "a = 0x" << setfill('0') << hex << noshowbase << setw(8) << a << dec << setfill(' ') << endl; ...
results in:
a = 0x0x91a1218
Is there something I can do about this?
Mr. Obvious asked, "how 'bout changing the code like so:" ... cout << "a = " << setfill('0') << hex << noshowbase << setw(8) << a << dec << setfill(' ') << endl; ...
or for more pain http://www.open-std.org/JTC1/sc22/wg21/docs/lwg-defects.html#183 cout << resetiosflags(ios_base::showbase) ????
On Tue, 03 Feb 2009 18:46:49 -0500, Todd Denniston wrote:
Mike -- EMAIL IGNORED wrote, On 02/03/2009 02:47 PM:
In FC7, the line"
... cout << "a = 0x" << setfill('0') << hex << noshowbase << setw(8) << a << dec << setfill(' ') << endl; ...
results in:
a = 0x0x91a1218
Is there something I can do about this?
Mr. Obvious asked, "how 'bout changing the code like so:" ... cout << "a = " << setfill('0') << hex << noshowbase << setw(8) << a << dec << setfill(' ') << endl; ...
or for more pain http://www.open-std.org/JTC1/sc22/wg21/docs/lwg-defects.html#183 cout << resetiosflags(ios_base::showbase) ????
[...]
Mr. Clearly Stated replied, "the code presented is merely a model to show the problem; the real code with the problem is much more complex."
Mike.