[c++0x patch] allow std::bind<void>
Ed Smith-Rowland
3dw4rd@verizon.net
Thu Dec 24 17:19:00 GMT 2009
Jonathan Wakely wrote:
> 2009/12/24 Paolo Carlini:
>
>> Jon, when you have the time, I think we have also another special case
>> in <functional> which could be improved, maybe for std::function itself,
>> please help me figuring out the details, I noticed this issue a lot of
>> time ago. Anyway, I think the issue is that we don't have overloads /
>> specializations for variadic functions: we catch elegantly any number of
>> arguments with variadic templates but we don't catch variadic functions
>> themselves. I think the std::is_function trait is already ok, however.
>>
>
> You mean old fashioned variadic "..." functions like printf? Hmm, I
> hadn't thought of that - I'll look into it.
>
>
Here is a new patch incorporating the test changes suggested by Jonathan
and removing the stupid paste-o size_t thing.
Regtested and bootstrapped of course.
In addition, for discussion, is a patch with the umsigned long long
changes. I made the ctor available ic C++-x *and* have long long. So
in we're doing C++-0x and long long is not available you should still
get the unsigned long ctor.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bitset_0x_ull.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091224/662d71da/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bitset_0x.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091224/662d71da/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CL_bitset_0x
Type: video/x-flv
Size: 173 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091224/662d71da/attachment.flv>
More information about the Libstdc++
mailing list