Changeset 149:6eaf638bfc9d in rrlib_util


Ignore:
Timestamp:
31.08.2016 13:54:48 (3 years ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
14.08
Children:
150:40a2ec03fbc9, 156:030a1ef23ba0
Phase:
public
Message:

Adds missing ==/!= operators to tEnumBasedFlags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tEnumBasedFlags.h

    r98 r149  
    167167}; 
    168168 
     169template <typename TFlag, typename TStorage = uint> 
     170inline bool operator==(const tEnumBasedFlags<TFlag, TStorage>& flags1, const tEnumBasedFlags<TFlag, TStorage>& flags2) 
     171{ 
     172  return flags1.Raw() == flags2.Raw(); 
     173} 
     174template <typename TFlag, typename TStorage = uint> 
     175inline bool operator!=(const tEnumBasedFlags<TFlag, TStorage>& flags1, const tEnumBasedFlags<TFlag, TStorage>& flags2) 
     176{ 
     177  return flags1.Raw() != flags2.Raw(); 
     178} 
     179 
    169180//---------------------------------------------------------------------- 
    170181// End of namespace declaration 
Note: See TracChangeset for help on using the changeset viewer.