Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Jan 22, 2025
1 parent 52d0bec commit 25822d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/shirakami/span_printer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace shirakami {
template<typename T>
class span_printer {
public:
constexpr span_printer(const std::vector<T>& vec) noexcept
constexpr explicit span_printer(const std::vector<T>& vec) noexcept
: data_(vec.data()), size_(vec.size()), sep_(", ") {}
constexpr span_printer(const std::vector<T>& vec, std::string_view sep) noexcept
: data_(vec.data()), size_(vec.size()), sep_(sep) {}
Expand All @@ -44,7 +44,7 @@ class span_printer {
if (i > 0) {
out << value.sep_;
}
out << value.data_[i];
out << value.data_[i]; // NOLINT
}
out << ']';
return out;
Expand Down

0 comments on commit 25822d2

Please sign in to comment.