
8 Oct
2010
8 Oct
'10
12:06 a.m.
On Thu, Oct 7, 2010 at 1:48 PM, Emil Dotchevski <emil@revergestudios.com> wrote:
Another solution is to define a different constructor of boost::function which initializes it in a way that it doesn't throw, similar to the constructors I added some time ago to support allocators. So you could just say boost::function<void()>(foo,nothrow).
That 'feels' compile-time based, requiring a check, the first email is indicating something where there is no check at all, all done at compile-time, that is what I find most useful.