Selaa lähdekoodia

Remove generic lambda usage.

Malcolm Tyrrell 5 vuotta sitten
vanhempi
commit
e51e07982d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      include/assimp/BaseImporter.h

+ 1 - 1
include/assimp/BaseImporter.h

@@ -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; });
         }
     }