Remove generic lambda usage.

pull/3329/head
Malcolm Tyrrell 2020-07-15 15:05:42 +01:00
parent e1bab44e19
commit e51e07982d
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ public: // static utilities
if (outLength) {
out = new T*[outLength];
T** outPtr = out;
std::for_each(vec.begin(), vec.end(), [&outPtr](auto& uPtr){*outPtr = uPtr.release(); ++outPtr; });
std::for_each(vec.begin(), vec.end(), [&outPtr](std::unique_ptr<T>& uPtr){*outPtr = uPtr.release(); ++outPtr; });
}
}