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 <new> includes for placement new

These files use placement `new` without directly including `<new>`,
causing standalone compilation to fail if `<new>` is not included
transitively.

Upstream-commit: catchorg/Catch2@3c53fc7a96337dc79495b7b1e460ba7f3b5159ab
Commit
b080d91b90587e051608ab5914432be92b1f1f68
Author
George Burgess IV ·
Committer
Leitwolf11
Parents
e20068a17d90

Files · Download .tar.gz

Changes

 src/Progmasoft/Catch3/Benchmark/Constructor.hpp | 1 +
 src/Progmasoft/Catch3/Internal/Optional.hpp     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/Progmasoft/Catch3/Benchmark/Constructor.hpp b/src/Progmasoft/Catch3/Benchmark/Constructor.hpp
index 5d054620..57e69862 100644
--- a/src/Progmasoft/Catch3/Benchmark/Constructor.hpp
+++ b/src/Progmasoft/Catch3/Benchmark/Constructor.hpp
@@ -11,6 +11,7 @@
 
 #include <Progmasoft/Catch3/Internal/MoveAndForward.hpp>
 
+#include <new>
 #include <type_traits>
 
 namespace Catch {
diff --git a/src/Progmasoft/Catch3/Internal/Optional.hpp b/src/Progmasoft/Catch3/Internal/Optional.hpp
index 9101b6f8..51d151fd 100644
--- a/src/Progmasoft/Catch3/Internal/Optional.hpp
+++ b/src/Progmasoft/Catch3/Internal/Optional.hpp
@@ -10,6 +10,7 @@
 #include <Progmasoft/Catch3/Internal/MoveAndForward.hpp>
 
 #include <cassert>
+#include <new>
 
 namespace Catch {