Opened 5 years ago

#6962 new Bugs

[function] missing document function::assign()

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Douglas Gregor
Milestone: To Be Determined Component: function
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:


boost::function::assign() member function is undocument. This function can assign allocator object one of the few way. I hope documentation this function.

#include <cassert>
#include <memory>
#include <boost/function.hpp>

struct increment {
    int operator()(int x) const { return x + 1; }

int main()
    boost::function<int(int)> f;
    f.assign(increment(), std::allocator<increment>());

    assert(f(1) == 2);

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Douglas Gregor.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.