Skip to content

Commit

Permalink
Add copy constructor for FileInfo
Browse files Browse the repository at this point in the history
Needed to compile tbb::concurrent_unordered_map<X, FileInfo>
  • Loading branch information
makortel committed Jan 5, 2022
1 parent e806fd2 commit 0c6aae7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Utilities/StorageFactory/interface/StatisticsSenderService.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ namespace edm {
struct FileInfo {
explicit FileInfo(std::string const& iLFN, edm::InputType);

FileInfo(FileInfo const& iInfo)
: m_filelfn(iInfo.m_filelfn),
m_serverhost(iInfo.m_serverhost),
m_serverdomain(iInfo.m_serverdomain),
m_type(iInfo.m_type),
m_size(iInfo.m_size.load()),
m_id(iInfo.m_id),
m_openCount(iInfo.m_openCount.load()) {}

FileInfo(FileInfo&& iInfo)
: m_filelfn(std::move(iInfo.m_filelfn)),
m_serverhost(std::move(iInfo.m_serverhost)),
Expand Down

0 comments on commit 0c6aae7

Please sign in to comment.