Skip to content

Commit

Permalink
Fix compilation error from missing include in xmlwriter.hpp
Browse files Browse the repository at this point in the history
Fixes #2907
  • Loading branch information
horenmar committed Sep 15, 2024
1 parent ce22c0f commit e200443
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/catch2/internal/catch_xmlwriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}


Expand Down

0 comments on commit e200443

Please sign in to comment.