[SciPy-Dev] Bundling Boost?

David Cournapeau cournape at gmail.com
Mon Oct 8 08:51:50 EDT 2012


On Mon, Oct 8, 2012 at 12:09 PM, Nathaniel Smith <njs at pobox.com> wrote:
> On Mon, Oct 8, 2012 at 11:41 AM, David Cournapeau <cournape at gmail.com> wrote:
>> In this case, I don't mind so much, because:
>>   - the templates for each special function are used in only one
>> compilation unit, so they will be compiled only once
>>   - there is a mode when you can force the exceptions do be disabled
>> and use ERRNO instead, so not too many issues there either.
>
> Wait, literally 'errno'? That seems like a terrible idea, given how
> tightly wound that API is with low-level system interfaces and
> compatibility hacks.

While I am not a fan of errno either, errno_on_error seems the closest
to what libraries using C semantics would expect:

http://www.boost.org/doc/libs/1_51_0/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/error_handling.html

As for compatibility goes, we have been using the C math function
which has the same behaviour for quite some time now,

David



More information about the SciPy-Dev mailing list