Make operators for VorbisCommentFlags constexpr

This commit is contained in:
Martchus 2018-04-29 21:14:02 +02:00
parent 388945d2b4
commit 01a0c730ba
1 changed files with 2 additions and 2 deletions

View File

@ -20,12 +20,12 @@ enum class VorbisCommentFlags : byte {
NoCovers = 0x4 /**< Skips all covers when making. */
};
inline bool operator&(VorbisCommentFlags lhs, VorbisCommentFlags rhs)
constexpr bool operator&(VorbisCommentFlags lhs, VorbisCommentFlags rhs)
{
return static_cast<byte>(lhs) & static_cast<byte>(rhs);
}
inline VorbisCommentFlags operator|(VorbisCommentFlags lhs, VorbisCommentFlags rhs)
constexpr VorbisCommentFlags operator|(VorbisCommentFlags lhs, VorbisCommentFlags rhs)
{
return static_cast<VorbisCommentFlags>(static_cast<byte>(lhs) | static_cast<byte>(rhs));
}