Re: uint64_t error and architecture targets
Re: uint64_t error and architecture targets
- Subject: Re: uint64_t error and architecture targets
- From: Quincey Morris <email@hidden>
- Date: Fri, 11 Feb 2011 01:43:05 -0800
On Feb 11, 2011, at 00:55, Andreas Grosam wrote:
> In C++ I would prefer to write
>
> #include <limits>
> #include <stdint.h>
>
> uint64_t y = std::numeric_limits<uint64_t>::max();
Sorry, I have to admit I LOL'ed.
C++ takes:
2 #includes
2 operators
1 namespace
1 template instantiation
1 function
to do what C does with "-1", but it does it so much *better* than C. It's a perfect example of what's wrong with C++. :)
[And, yes, I'm aware that the C-ish answer is just as bizarre, in its own C-ish way.]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden