|
Boost : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-22 13:36:07
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk