Clean up
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
namespace TLAC::Utilities
|
||||
{
|
||||
template<class T> inline T operator~ (T a) { return (T)~(int)a; }
|
||||
template<class T> inline T operator| (T a, T b) { return (T)((int)a | (int)b); }
|
||||
template<class T> inline T operator& (T a, T b) { return (T)((int)a & (int)b); }
|
||||
template<class T> inline T operator^ (T a, T b) { return (T)((int)a ^ (int)b); }
|
||||
template<class T> inline T& operator|= (T& a, T b) { return (T&)((int&)a |= (int)b); }
|
||||
template<class T> inline T& operator&= (T& a, T b) { return (T&)((int&)a &= (int)b); }
|
||||
template<class T> inline T& operator^= (T& a, T b) { return (T&)((int&)a ^= (int)b); }
|
||||
}
|
||||
Reference in New Issue
Block a user