
22 Jul
2008
22 Jul
'08
5:36 p.m.
AMDG Mathias Gaunard wrote:
Andrey Tcherepanov wrote:
Oh, no... I think the fact that Boost.Function allows storing of null pointer ("there is no function to call") is a good thing!
Well, if you like the possibility of invoking undefined behaviour, it is surely a good thing. I would rather have the type system and the exception mechanism make sure that can never happen.
It isn't undefined behavior to call an empty Boost.Function It results in a bad_function_call. In Christ, Steven Watanabe