This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Deprecated features of <functional>
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Morwenn Ed <morwenn29 at hotmail dot fr>
- Cc: "Libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 30 Sep 2013 23:32:11 +0100
- Subject: Re: Deprecated features of <functional>
- Authentication-results: sourceware.org; auth=none
- References: <DUB105-W51F34E632FCEA6FBB3F6E0D3140 at phx dot gbl>
On 30 September 2013 22:55, Morwenn Ed wrote:
> std::unary_function and std::binary_function are used to implement other parts of libstdc++.
> They could be replaced by std::function in c++11 but std::function is not c++98...
std::function is a call wrapper, but unary_function and
binary_function only define typedefs, they are not call wrappers, and
can't be replaced by std::function.