diff --git a/src/V3DfgVertices.h b/src/V3DfgVertices.h index 728327637..206342384 100644 --- a/src/V3DfgVertices.h +++ b/src/V3DfgVertices.h @@ -196,7 +196,8 @@ public: // Remove undriven sources void packSources() { // Grab and reset the driver data - std::vector driverData{std::move(m_driverData)}; + std::vector driverData; + driverData.swap(m_driverData); // Grab and unlink the sources std::vector sources{arity()}; @@ -255,7 +256,8 @@ public: // Remove undriven sources void packSources() { // Grab and reset the driver data - std::vector driverData{std::move(m_driverData)}; + std::vector driverData; + driverData.swap(m_driverData); // Grab and unlink the sources std::vector sources{arity()};