mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 11:23:29 +01:00
Fix compilation error from missing include in xmlwriter.hpp
Fixes #2907
This commit is contained in:
parent
ce22c0fe8a
commit
e200443b84
@ -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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user