Skip to content

Commit 51071d7

Browse files
committed
Remove redundant std::byte StringMaker
Catch2 v3.4.0 already provides StringMaker<std::byte> specialization.
1 parent bc830c8 commit 51071d7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/data_bits_test.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
#include "mh/data/bits.hpp"
22
#include <catch2/catch_all.hpp>
3-
#include <cstddef>
4-
#include <sstream>
5-
#include <iomanip>
6-
7-
// Provide StringMaker for std::byte to allow Catch2 to print byte values
8-
template<>
9-
struct Catch::StringMaker<std::byte> {
10-
static std::string convert(std::byte value) {
11-
std::ostringstream oss;
12-
oss << "0x" << std::hex << std::setfill('0') << std::setw(2) << static_cast<unsigned>(value);
13-
return oss.str();
14-
}
15-
};
163

174
template<unsigned bits_to_copy, unsigned src_offset, typename TSrc = void, typename TDst = void>
185
static void test_bit_functions(const TSrc* src, const TDst expected)

0 commit comments

Comments
 (0)