Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct uint32 {
- unsigned int x_;
- uint32(unsigned int x) : x_(x) {}
- uint32(const uint32 &oth) : x_(oth.x_) {}
- uint32 &operator=(const uint32 &oth) { x_ = oth.x_; return *this; }
- operator unsigned int() const { return x_; }
- };
- static inline uint32 operator+(const uint32 &a, const uint32 &b) {
- return uint32(ObfuscatedAdder<unsigned int>::eval(a.x_, b.x_));
- }
- unsigned int foo = 5 + 7;
- uint32 a = 5;
- uint32 b = 7;
- unsigned int foo = a + b;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement