This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Add C++-0x char* cotor and to_ullong to bitset
On 12/18/2009 06:50 PM, 3dw4rd@verizon.net wrote:
> OK, that reuse seems reasonable.
>
>
Even more than just "reasonable" ;) While you are at it, don't use
this->, is redundant.
> So you're thinking this:
> Patch 1. explicit bitset(const char*); with the fixes above
> Patch 2. unsigned long long to_ullong();
>
> Actually, in C++-0X:
> 3. explicit bitset(unsigned long long) replaces explicit bitset(unsigned long).
> I missed that.
>
> This would only be applied if std=c++0x *and* if long long is supported of course.
> I thought changing the word size in the base would break ABI compatibility.
>
Yes, that's why I was waiting a bit on that, anythin having to do with
long long vs long actually. Also, consider that on many widespread
64-bit systems, like Linux, sizeof(long) == sizeof(long long), thus the
user has nothing to gain from the availability of those new facilities...
Paolo.