|
Boost : |
Subject: Re: [boost] [modularization] How to remove the Math -> multuplecission dependency?
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2014-06-06 13:32:35
Le 06/06/14 09:55, John Maddock a écrit :
>> John, ther is a cycle between multuprecision and Math.
>
> I know.
>
>> how can this dependency be removed?
>>
>>
>> /math ->multiprecision/
>> <http://www.pdimov.com/tmp/report-6d1f271/multiprecision.html>
>>
>>
>> |<boost/multiprecision/cpp_dec_float.hpp>|
>>
>> * from |<boost/math/constants/generate.hpp>|
>
> I would argue it's a "false positive": the header generate.hpp is a
> maintenance header used for generating new numeric constants, and the
> dependency to multiprecision is optional (inside #ifdef's). It is
> however documented, so I'm loathed to just move it. There are quite a
> few of Math's dependencies that are introduced via similar headers
> that exist for maintenance/testing/optional use, and are not included
> by any of the "include everything" entry point headers.
>
>
I don't mind for the other optional dependencies. The issue with this
one is that it introduce a cycle. It would be great if this cycle can be
broken but of course, there is nothing in Boost rules that force us to
don't have cycles :)
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk