Subject: [Boost-bugs] [Boost C++ Libraries] #6962: [function] missing document function::assign()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-04 03:26:34
#6962: [function] missing document function::assign()
-------------------------------------------------------+--------------------
Reporter: Akira Takahashi <faithandbrave@â¦> | Owner: dgregor
Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
-------------------------------------------------------+--------------------
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);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6962> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC