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]

Re: Deprecated features of <functional>


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.


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