Upstream issue: https://github.com/Ultimaker/CuraEngine/issues/1318

--- a/tests/utils/SparseGridTest.cpp
+++ b/tests/utils/SparseGridTest.cpp
@@ -1,6 +1,7 @@
 //Copyright (c) 2019 Ultimaker B.V.
 //CuraEngine is released under the terms of the AGPLv3 or higher.
 
+#include <algorithm>
 #include <gtest/gtest.h>
 #include <unordered_set>
 #include <vector>

