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]

RFC defining std::function::assign


void function::assign(F&&, const Alloc& a);

Currently this function is not defined because it would need to use
the function(allocator_arg_t, const Alloc&, F) constructor, which
doesn't exist either, because we don't have allocator_arg_t yet.

The patch below would define function::assign, but ignore the
allocator argument. That allows the attached test to compile, but it's
XFAILed because the allocator isn't used.

I think it's better to have the assign function, even if it doesn't
use the allocator, but would like to hear what others think.

Attachment: funcalloc.txt
Description: Text document


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