From e200443b84acbfbfab849a032300e6544d3ee9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 15 Sep 2024 22:17:36 +0200 Subject: [PATCH] Fix compilation error from missing include in xmlwriter.hpp Fixes #2907 --- src/catch2/internal/catch_xmlwriter.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/catch2/internal/catch_xmlwriter.hpp b/src/catch2/internal/catch_xmlwriter.hpp index e0476b90..22b42c5c 100644 --- a/src/catch2/internal/catch_xmlwriter.hpp +++ b/src/catch2/internal/catch_xmlwriter.hpp @@ -13,22 +13,23 @@ #include #include +#include namespace Catch { - enum class XmlFormatting : uint8_t { + enum class XmlFormatting : std::uint8_t { None = 0x00, Indent = 0x01, Newline = 0x02, }; constexpr XmlFormatting operator|( XmlFormatting lhs, XmlFormatting rhs ) { - return static_cast( static_cast( lhs ) | - static_cast( rhs ) ); + return static_cast( static_cast( lhs ) | + static_cast( rhs ) ); } constexpr XmlFormatting operator&( XmlFormatting lhs, XmlFormatting rhs ) { - return static_cast( static_cast( lhs ) & - static_cast( rhs ) ); + return static_cast( static_cast( lhs ) & + static_cast( rhs ) ); }