diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-09-11 14:58:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-11 14:58:03 +0200 |
| commit | a617ef8497569bf32a16b04e1a53a0d399386227 (patch) | |
| tree | bb2b25696625fa83668cf4472b1824478617b04f /test/unit/pj_phi2_test.cpp | |
| parent | a7360890e92ee1b34a1142963a8ae7d0562c386e (diff) | |
| parent | 3da5c306cec8bd3a5e2dd9dee83587a5d0a94dd7 (diff) | |
| download | PROJ-a617ef8497569bf32a16b04e1a53a0d399386227.tar.gz PROJ-a617ef8497569bf32a16b04e1a53a0d399386227.zip | |
Merge pull request #1117 from mwtoews/intel
Modifications for Intel compilers
Diffstat (limited to 'test/unit/pj_phi2_test.cpp')
| -rw-r--r-- | test/unit/pj_phi2_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/pj_phi2_test.cpp b/test/unit/pj_phi2_test.cpp index 20e86e8d..186bcbc5 100644 --- a/test/unit/pj_phi2_test.cpp +++ b/test/unit/pj_phi2_test.cpp @@ -64,13 +64,13 @@ TEST(PjPhi2Test, Basic) { TEST(PjPhi2Test, AvoidUndefinedBehavior) { auto ctx = pj_get_default_ctx(); - constexpr auto nan = std::numeric_limits<double>::quiet_NaN(); + const auto nan = std::numeric_limits<double>::quiet_NaN(); EXPECT_TRUE(std::isnan(pj_phi2(ctx, nan, 0.0))); EXPECT_TRUE(std::isnan(pj_phi2(ctx, 0.0, nan))); EXPECT_TRUE(std::isnan(pj_phi2(ctx, nan, nan))); // We do not really care about the values that follow. - constexpr auto inf = std::numeric_limits<double>::infinity(); + const auto inf = std::numeric_limits<double>::infinity(); EXPECT_DOUBLE_EQ(-M_PI_2, pj_phi2(ctx, inf, 0.0)); EXPECT_TRUE(std::isnan(pj_phi2(ctx, 0.0, inf))); @@ -82,4 +82,4 @@ TEST(PjPhi2Test, AvoidUndefinedBehavior) { EXPECT_TRUE(std::isnan(pj_phi2(ctx, -inf, -inf))); } -} // namespace
\ No newline at end of file +} // namespace |
