You're viewing a comment by Mattias and its responses.

Mattias Permalink
May 18, 2010, 14:40

Just to add a bit: C++ functors would typically inherit from std::unary_function or std::binary_function.
In the example in the article it doesn't matter much, but for other cases it does.
It is explained a bit more here:
Benefits of letting functors inherit from std::unary_function...

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cloud_219": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.