SWDEV-1 - Fix Windows build
std: :mem_fun() is removed in c++17. Simplify logic to not require it. Change-Id: Ic9a4753b48dd13fcb20cd5b90ff73c3df3211b9f
This commit is contained in:
@@ -977,7 +977,9 @@ class NativeFnCommand : public Command {
|
||||
~NativeFnCommand() { delete[] args_; }
|
||||
|
||||
void releaseResources() {
|
||||
std::for_each(memObjects_.begin(), memObjects_.end(), std::mem_fun(&Memory::release));
|
||||
for (const auto& memObject: memObjects_) {
|
||||
memObject->release();
|
||||
}
|
||||
Command::releaseResources();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user