mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix aggregate initialization issue before C++20
Use value initialization to prevent error: temporary of type ... has protected destructor see https://stackoverflow.com/a/56745475
This commit is contained in:
committed by
Dennis Klein
parent
21d6cf9830
commit
4b6cf8b181
@@ -306,8 +306,8 @@ void Monitor::CheckSegment()
|
||||
ss << "shm id: " << fShmId
|
||||
<< ", devices: " << numDevices << ", segments:\n";
|
||||
for (const auto& s : segments) {
|
||||
size_t free = boost::apply_visitor(SegmentFreeMemory{}, s.second);
|
||||
size_t total = boost::apply_visitor(SegmentSize{}, s.second);
|
||||
size_t free = boost::apply_visitor(SegmentFreeMemory(), s.second);
|
||||
size_t total = boost::apply_visitor(SegmentSize(), s.second);
|
||||
size_t used = total - free;
|
||||
ss << " [" << s.first
|
||||
<< "]: total: " << total
|
||||
|
Reference in New Issue
Block a user