Skip to content

Commit

Permalink
chore: Remove std::span write method, reformat includes in OutputStre…
Browse files Browse the repository at this point in the history
…am.h and TestStream.cpp
  • Loading branch information
SHIINASAMA committed Oct 3, 2024
1 parent b22af1a commit 3cb9101
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions sese/io/OutputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ class OutputStream {
int64_t write(std::array<T, N> &buffer) {
return write(buffer.data(), N * sizeof(T));
}

template<typename T>
int64_t write(std::span<T> &buffer) {
return write(buffer.data(), buffer.size() * sizeof(T));
}
};

// GCOVR_EXCL_STOP
Expand Down
2 changes: 0 additions & 2 deletions sese/test/TestStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ TEST(TestStream, STLSupport) {
std::string msg = "hello world\n";
std::vector<char> vector{'h', 'e', 'l', 'l', 'o', '\n'};
std::array<char, 6> array{'h', 'e', 'l', 'l', 'o', '\n'};
std::span span(array.begin(), array.end());

out->write(msg);
out->write(vector);
out->write(array);
out->write(span);
}

TEST(TestStream, BufferedInput) {
Expand Down

0 comments on commit 3cb9101

Please sign in to comment.