Closed BastienC09 closed 3 years ago
@silene is anybody working on a fix and is what @BastienC09 proposes correct? I @ you, as you are listed as one of the maintainers.
Sorry, I was not aware of this issue. Thanks for pinging me. Yes, the proposed fix is correct, since C++11 provides C99's fenv.h
.
I guess that, nowadays, the whole conditional would be changed to something like
#if defined(BOOST_NUMERIC_INTERVAL_NO_HARDWARE) && !defined(BOOST_NO_FENV_H)
#include <boost/numeric/interval/detail/c99_rounding_control.hpp>
#endif
So will you create a pull request?
Hi, I am building an app for IOS (ARM) and I had this issue while compiling: Boost.Numeric.Interval: Please specify rounding control mechanism.
C99 version should be used in my case but __USE_ISOC99 is not defined.
Modifying the condition with this code (using __cplusplus) fixed the issue: _boost/numeric/interval/hwrounding.hpp(36)
Let me know if I missed something or if you plan to integrate this modification in a next version.
Cheers, Bastien Commelongue