Skip to content

Commit

Permalink
Fix compile with clang 16 and libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jul 20, 2023
1 parent 038e65d commit b356360
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SimpleLogRecordProcessor : public LogRecordProcessor

public:
explicit SimpleLogRecordProcessor(std::unique_ptr<LogRecordExporter> &&exporter);
~SimpleLogRecordProcessor() override = default;
~SimpleLogRecordProcessor() override;

std::unique_ptr<Recordable> MakeRecordable() noexcept override;

Expand Down
2 changes: 2 additions & 0 deletions sdk/src/logs/simple_log_record_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ SimpleLogRecordProcessor::SimpleLogRecordProcessor(std::unique_ptr<LogRecordExpo
: exporter_(std::move(exporter)), is_shutdown_(false)
{}

SimpleLogRecordProcessor::~SimpleLogRecordProcessor() {}

std::unique_ptr<Recordable> SimpleLogRecordProcessor::MakeRecordable() noexcept
{
return exporter_->MakeRecordable();
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/metrics/data/circular_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct AdaptingIntegerArrayClear
template <typename T>
void operator()(std::vector<T> &backing)
{
std::fill(backing.begin(), backing.end(), static_cast<T>(0));
backing.assign(backing.size(), static_cast<T>(0));
}
};

Expand Down

0 comments on commit b356360

Please sign in to comment.