Constexpr Math Functions

后端 未结 3 555
粉色の甜心
粉色の甜心 2020-11-28 09:34

So noticed from this page that none of the math functions in c++11 seems to make use of constexpr, whereas I believe all of them could be. So that leaves me with two questio

3条回答
  •  囚心锁ツ
    2020-11-28 10:26

    Actually, because of old and annoying legacy, almost none of the math functions can be constexpr, since they all have the side-effect of setting errno on various error conditions, usually domain errors.

提交回复
热议问题