Skip to content

Commit

Permalink
[BUILD] Fix compile with clang 16 and libc++ (open-telemetry#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jul 21, 2023
1 parent a15a9b8 commit 92a8a54
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 92a8a54

Please sign in to comment.