
2 Oct
2009
2 Oct
'09
4:22 p.m.
Andrey Semashev wrote:
I think this branching can be effectively elided without sacrificing safety if boost::function maintains never-empty internal guarantee. IOW, if function::empty() returns true, then the function object is actually pointing to some private function that simply throws upon being invoked.
That looks like a very good idea.