Skip to content

Commit

Permalink
remove redundant ';' characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Dec 16, 2024
1 parent 18c52ed commit 1760106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/ticcutils/enum_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ namespace TiCC {
inline ENUMTYPE operator ^ (ENUMTYPE a, ENUMTYPE b) { return ENUMTYPE(((std::underlying_type<ENUMTYPE>::type)a) ^ ((std::underlying_type<ENUMTYPE>::type)b)); } \
inline ENUMTYPE &operator ^= (ENUMTYPE &a, ENUMTYPE b) { return (ENUMTYPE &)(((std::underlying_type<ENUMTYPE>::type &)a) ^= ((std::underlying_type<ENUMTYPE>::type)b)); } \
inline bool operator % ( const ENUMTYPE &a, ENUMTYPE b) { return (a & b) == b; }
}

} //namespace TICC
#endif
4 changes: 2 additions & 2 deletions src/runtest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,8 @@ enum flags { No = 0, One = 1, Two= 2, Four = 4};

enum class class_flags { nope = 0, ok = 1, warning = 1<<1, error = 1<<2 };

DEFINE_ENUM_FLAG_OPERATORS(flags);
DEFINE_ENUM_FLAG_OPERATORS(class_flags);
DEFINE_ENUM_FLAG_OPERATORS(flags)
DEFINE_ENUM_FLAG_OPERATORS(class_flags)

std::ostream& operator<<( std::ostream& os, const flags& f ){
os << int(f);
Expand Down

0 comments on commit 1760106

Please sign in to comment.