Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Add missing include for VxWorks build. (#2515)

`catch_sharding.hpp` was using `std::min` without including `<algorithm>`.
This worked on most platforms, but it wasn't transitively included in
the VxWorks toolchain.
Commit
32eae0ecce470639344b121186fb76a240de04b9
Author
Riom ·
Committer
GitHub
Parents
4adf0105490a

Files · Download .tar.gz

Changes

 src/catch2/internal/catch_sharding.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/catch2/internal/catch_sharding.hpp b/src/catch2/internal/catch_sharding.hpp
index 17a206f8..5bff4b85 100644
--- a/src/catch2/internal/catch_sharding.hpp
+++ b/src/catch2/internal/catch_sharding.hpp
@@ -11,6 +11,7 @@
 #include <catch2/catch_session.hpp>
 
 #include <cmath>
+#include <algorithm>
 
 namespace Catch {