fixed gcc builds - relates #98
diff --git a/doctest/doctest.h b/doctest/doctest.h
index f26c711..470738e 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3296,6 +3296,7 @@
#include <limits>
#include <utility>
#include <sstream>
+#include <algorithm>
#include <iomanip>
#include <vector>
#include <set>
diff --git a/doctest/parts/doctest_impl.h b/doctest/parts/doctest_impl.h
index 30f7189..bb6c574 100644
--- a/doctest/parts/doctest_impl.h
+++ b/doctest/parts/doctest_impl.h
@@ -105,6 +105,7 @@
#include <limits>
#include <utility>
#include <sstream>
+#include <algorithm>
#include <iomanip>
#include <vector>
#include <set>