We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9d611 commit df1439aCopy full SHA for df1439a
test/github_issue_1106.cpp
@@ -7,14 +7,18 @@
7
#include <boost/decimal.hpp>
8
#include <boost/core/lightweight_test.hpp>
9
#include <limits>
10
+#include <cmath>
11
12
using namespace boost::decimal;
13
14
template <typename T>
15
void test()
16
{
17
+ using std::isinf;
18
+ using std::signbit;
19
+
20
const auto a {std::numeric_limits<T>::lowest() / 99};
- const T b {1, 2};
21
+ const T b {100};
22
const auto c {a * b};
23
24
BOOST_TEST(isinf(c));
@@ -23,6 +27,9 @@ void test()
27
28
int main()
25
29
30
+ test<float>();
31
+ test<double>();
32
26
33
test<decimal32_t>();
34
test<decimal64_t>();
35
test<decimal128_t>();
0 commit comments