The return type of boost::bind and now std::bind is unspecified.
What is the return type of boost::bind?
Why is it that the return type of boost::bind and now std::bind is unspecified? Why isn't it something like boost::function and std::function?
I realize that the intent is to refer to the return type via type deduction but that doesn't answer why std::bind is special.
If that was just the whim of the committee then ok, there's not much else to say, but is there a technical reason that specifying a return type for std::bind is uniquely burdensome or that not specifying it permits a more efficient implementation?
Aucun commentaire:
Enregistrer un commentaire