This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

Re: num_get<>::do_get (overflow/underflow - question)



> I compiled the current libstdc++ source last week.
> On my machine the simple 'std::cout << "Hello, world!"' does not work.
> The executable starts and... nothing occurs :_(
> Prehaps the last egcs snapshot I used (egcs-1.1.2 does not compile the
> library) has a bug?

today's cvs snapshot for a linux-hosted build works. What host are you
using, and I'll check it.

> > If you can get away with it, no defines please. I'd rather you just check
> > the returned value (_v) against INT_MIN and INT_MAX.
> > 
> The reason for what I wrote this example was to get the faster solution
> for 'int' on machines where sizeof(int) == sizeof(long).

Yes, perhaps it would be faster. Just send a patch and a ChangeLog.

-Benjamin



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