|
12 | 12 | #include <cstring>
|
13 | 13 | #include <cerrno>
|
14 | 14 |
|
15 |
| -template <typename T> |
16 | 15 | void test_integer()
|
17 | 16 | {
|
18 | 17 | std::uint64_t significand {};
|
@@ -84,8 +83,7 @@ void test_integer()
|
84 | 83 | BOOST_TEST(r6.ec == std::errc::result_out_of_range);
|
85 | 84 | }
|
86 | 85 |
|
87 |
| -template <typename T> |
88 |
| -void test_scientifc() |
| 86 | +void test_scientific() |
89 | 87 | {
|
90 | 88 | std::uint64_t significand {};
|
91 | 89 | std::int64_t exponent {};
|
@@ -146,7 +144,6 @@ void test_scientifc()
|
146 | 144 |
|
147 | 145 | }
|
148 | 146 |
|
149 |
| -template <typename T> |
150 | 147 | void test_hex_integer()
|
151 | 148 | {
|
152 | 149 | std::uint64_t significand {};
|
@@ -175,7 +172,6 @@ void test_hex_integer()
|
175 | 172 | BOOST_TEST(r3.ec == std::errc::invalid_argument);
|
176 | 173 | }
|
177 | 174 |
|
178 |
| -template <typename T> |
179 | 175 | void test_hex_scientific()
|
180 | 176 | {
|
181 | 177 | std::uint64_t significand {};
|
@@ -236,21 +232,10 @@ void test_zeroes()
|
236 | 232 |
|
237 | 233 | int main()
|
238 | 234 | {
|
239 |
| - test_integer<float>(); |
240 |
| - test_integer<double>(); |
241 |
| - test_integer<long double>(); |
242 |
| - |
243 |
| - test_scientifc<float>(); |
244 |
| - test_scientifc<double>(); |
245 |
| - test_scientifc<long double>(); |
246 |
| - |
247 |
| - test_hex_integer<float>(); |
248 |
| - test_hex_integer<double>(); |
249 |
| - test_hex_integer<long double>(); |
250 |
| - |
251 |
| - test_hex_scientific<float>(); |
252 |
| - test_hex_scientific<double>(); |
253 |
| - test_hex_scientific<long double>(); |
| 235 | + test_integer(); |
| 236 | + test_scientific(); |
| 237 | + test_hex_integer(); |
| 238 | + test_hex_scientific(); |
254 | 239 |
|
255 | 240 | test_zeroes();
|
256 | 241 | return boost::report_errors();
|
|
0 commit comments