mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
3efae11c36
closes #36801 closes #36253 closes #36044 ~~includes #24327 to fix dlib linkage in the osx pipelines.~~ Need to look at ~~#36044~~ ~~#36345~~ merge after - [x] #37561 --------- Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
diff --git a/vtkm/filter/flow/internal/Messenger.cxx b/vtkm/filter/flow/internal/Messenger.cxx
|
|
index 52c582f201..dff804cc8a 100644
|
|
--- a/vtkm/filter/flow/internal/Messenger.cxx
|
|
+++ b/vtkm/filter/flow/internal/Messenger.cxx
|
|
@@ -277,7 +277,7 @@ void Messenger::SendDataSync(int dst, int tag, vtkmdiy::MemoryBuffer& buff)
|
|
if (it == this->SyncSendBuffers.end())
|
|
{
|
|
std::vector<std::pair<int, vtkmdiy::MemoryBuffer>> vec;
|
|
- vec.push_back(std::move(entry));
|
|
+ vec.emplace_back(std::move(entry));
|
|
this->SyncSendBuffers.insert(std::make_pair(tag, std::move(vec)));
|
|
}
|
|
else
|
|
diff --git a/vtkm/filter/flow/internal/Messenger.h b/vtkm/filter/flow/internal/Messenger.h
|
|
index 42d554ae51..b6a0acb40b 100644
|
|
--- a/vtkm/filter/flow/internal/Messenger.h
|
|
+++ b/vtkm/filter/flow/internal/Messenger.h
|
|
@@ -44,6 +44,11 @@ public:
|
|
#endif
|
|
}
|
|
|
|
+ Messenger(const Messenger&) =delete;
|
|
+ Messenger(Messenger&&) =default;
|
|
+ Messenger& operator=(Messenger&&) =default;
|
|
+ Messenger& operator=(const Messenger&) =delete;
|
|
+
|
|
int GetRank() const { return this->Rank; }
|
|
int GetNumRanks() const { return this->NumRanks; }
|
|
|
|
@@ -108,7 +113,7 @@ private:
|
|
|
|
//Member data
|
|
// <tag, {dst, buffer}>
|
|
- std::map<int, std::vector<std::pair<int, vtkmdiy::MemoryBuffer>>> SyncSendBuffers;
|
|
+ std::map<int, std::vector<std::pair<int, vtkmdiy::MemoryBuffer>>> SyncSendBuffers = {};
|
|
std::map<int, std::pair<std::size_t, std::size_t>> MessageTagInfo;
|
|
MPI_Comm MPIComm;
|
|
std::size_t MsgID;
|