boostorg / boostorg/math

The future of fpclassify.hpp

未关闭
#548 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
374
派生
264
平均合并
1 天 23 小时
30 天内合并 PR
17

描述

I'm opening this as a place for discussion really.

We currently have boost::math::fpclassify/isnan/isinf/isnormal etc which began life as workarounds for C++03 compilers, but they have another role: for IEEE conforming types they work even in the presence of -ffast-math.

Now, I have some dim recollection, that gcc/clang used to replace say `std::isnan(x)` with a literal `false` even with just -O3. And that we had some very inscrutable bug reports caused by this. However, that appears not to be the case with current releases, so perhaps this has been fixed/changed?

So... I'm undecided whether the boost functions should become synonyms for the std ones, but just wanted to flag the issue.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。