This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] libstdc++/57920


Hi,

On 07/23/2013 12:45 PM, Chung-Ju Wu wrote:
2013/7/23 Paolo Carlini <paolo.carlini@oracle.com>:
... in the future, when we manage to actually avoid including <cstdio> from
<string> I think we can avoid including it from <random> if we play a bit
with void*. Should be safe aliasing-wise. Something like the below,
completely untested.
I tested it on my target.  At least the elf toolchain can be
successfully built with such changes.
Thanks for testing! I guess we can as well do this now that we are still in Stage 1. Also, take the chance to avoid a couple of unnecessary reinterpret_casts. Like in the below, which I'm going to apply if testing on x86_64-linux goes well.

Paolo.

///////////////////

Attachment: CL
Description: Text document

Attachment: patchlet
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]