We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72aa39f commit c20b2b0Copy full SHA for c20b2b0
1 file changed
src/IO/ADIOS/ADIOS2File.cpp
@@ -1034,10 +1034,7 @@ void ADIOS2File::flush_impl(
1034
}
1035
// Move the operations out of the queue so that no one has ideas to run
1036
// them for a second time
1037
- drainedUniquePtrPuts = std::move(m_uniquePtrPuts);
1038
- // m_uniquePtrPuts is in a valid, but unspecified state after moving
1039
- // --> clear it
1040
- m_uniquePtrPuts.clear();
+ drainedUniquePtrPuts.swap(m_uniquePtrPuts);
1041
1042
1043
if (readOnly(m_mode))
0 commit comments