diff options
| author | Martin Hořeňovský | 2024-09-15 22:17:36 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-09-15 22:17:39 +0200 |
| commit | e200443b84acbfbfab849a032300e6544d3ee9aa (patch) | |
| tree | 44ffad5318255f3346b99996f7f9d4abb84f35a0 /src | |
| parent | ce22c0fe8a6afed61aca682e47ddc9b084c60d4a (diff) | |
| download | catch3-e200443b84acbfbfab849a032300e6544d3ee9aa.tar.gz | |
Fix compilation error from missing include in xmlwriter.hpp
Fixes #2907
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_xmlwriter.hpp | 11 |
1 files 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 <iosfwd> #include <vector> +#include <cstdint> 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<XmlFormatting>( static_cast<uint8_t>( lhs ) | - static_cast<uint8_t>( rhs ) ); + return static_cast<XmlFormatting>( static_cast<std::uint8_t>( lhs ) | + static_cast<std::uint8_t>( rhs ) ); } constexpr XmlFormatting operator&( XmlFormatting lhs, XmlFormatting rhs ) { - return static_cast<XmlFormatting>( static_cast<uint8_t>( lhs ) & - static_cast<uint8_t>( rhs ) ); + return static_cast<XmlFormatting>( static_cast<std::uint8_t>( lhs ) & + static_cast<std::uint8_t>( rhs ) ); } |