Fix compilation error from missing include in xmlwriter.hpp

Fixes #2907
This commit is contained in:
Martin Hořeňovský 2024-09-15 22:17:36 +02:00
parent ce22c0fe8a
commit e200443b84
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -13,22 +13,23 @@
#include <iosfwd> #include <iosfwd>
#include <vector> #include <vector>
#include <cstdint>
namespace Catch { namespace Catch {
enum class XmlFormatting : uint8_t { enum class XmlFormatting : std::uint8_t {
None = 0x00, None = 0x00,
Indent = 0x01, Indent = 0x01,
Newline = 0x02, Newline = 0x02,
}; };
constexpr XmlFormatting operator|( XmlFormatting lhs, XmlFormatting rhs ) { constexpr XmlFormatting operator|( XmlFormatting lhs, XmlFormatting rhs ) {
return static_cast<XmlFormatting>( static_cast<uint8_t>( lhs ) | return static_cast<XmlFormatting>( static_cast<std::uint8_t>( lhs ) |
static_cast<uint8_t>( rhs ) ); static_cast<std::uint8_t>( rhs ) );
} }
constexpr XmlFormatting operator&( XmlFormatting lhs, XmlFormatting rhs ) { constexpr XmlFormatting operator&( XmlFormatting lhs, XmlFormatting rhs ) {
return static_cast<XmlFormatting>( static_cast<uint8_t>( lhs ) & return static_cast<XmlFormatting>( static_cast<std::uint8_t>( lhs ) &
static_cast<uint8_t>( rhs ) ); static_cast<std::uint8_t>( rhs ) );
} }