From 8382d99081d497947652b87f12cc0b10c2e4b0de Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Wed, 9 Aug 2017 10:18:31 +0100 Subject: [PATCH] Workaround for GCC 4.8 "deleted ctor in aggregate" bug --- include/internal/catch_assertioninfo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/internal/catch_assertioninfo.h b/include/internal/catch_assertioninfo.h index 21646b21..1ac304e1 100644 --- a/include/internal/catch_assertioninfo.h +++ b/include/internal/catch_assertioninfo.h @@ -21,6 +21,8 @@ namespace Catch { StringRef capturedExpression; ResultDisposition::Flags resultDisposition; + // We want to delete this constructor but a compiler bug in 4.8 means + // the struct is then treated as non-aggregate AssertionInfo() = delete; };