Skip to content

Commit

Permalink
explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 12, 2024
1 parent 3ce6116 commit 5174b29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/Framework/src/Framework/Sequencer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ void Sequencer::fpeReport() const {
auto merged = std::accumulate(
fpe.begin(), fpe.end(), Acts::FpeMonitor::Result{},
[](const auto& lhs, const auto& rhs) { return lhs.merged(rhs); });
if (!merged) {
if (!merged.hasStackTraces()) {
// no FPEs to report
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::ostream &operator<<(std::ostream &os, FpeType type);
class FpeMonitor {
public:
struct Buffer {
Buffer(std::size_t bufferSize)
explicit Buffer(std::size_t bufferSize)
: m_data{std::make_unique<std::byte[]>(bufferSize)},
m_size{bufferSize} {}

Expand Down Expand Up @@ -105,7 +105,9 @@ class FpeMonitor {

Result() = default;

operator bool() const { return !m_stacktraces.empty(); }
operator bool() const = delete;

bool hasStackTraces() const { return !m_stackTraces.empty(); }

void add(Acts::FpeType type, void *stackPtr, std::size_t bufferSize);

Expand Down

0 comments on commit 5174b29

Please sign in to comment.