Skip to content

Commit 8f79501

Browse files
committed
* small cleanup in the tests/basictest.cpp
1 parent 41d9632 commit 8f79501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/basictest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ template <typename T> std::string fHexAndDec(T v) {
6969
return ss.str();
7070
}
7171

72-
char const *round_name(int d) {
72+
constexpr std::string_view const round_name(int d) {
7373
switch (d) {
7474
case FE_UPWARD:
7575
return "FE_UPWARD";
@@ -2313,7 +2313,7 @@ TEST_CASE("integer_times_pow10") {
23132313

23142314
for (int mode : {FE_UPWARD, FE_DOWNWARD, FE_TOWARDZERO, FE_TONEAREST}) {
23152315
fesetround(mode);
2316-
INFO("fesetround(): " << std::string{round_name(mode)});
2316+
INFO("fesetround(): " << round_name(mode));
23172317

23182318
struct Guard {
23192319
~Guard() { fesetround(FE_TONEAREST); }

0 commit comments

Comments
 (0)