MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / XorOperator2

Function XorOperator2

Test/ConstExpr.cpp:295–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293
294 template <typename T, typename U>
295 _CONSTEXPR14 U XorOperator2()
296 {
297 // Have to explicitly force this operator
298 // to be used
299 U lhs = 3;
300 SafeInt<T> s(1);
301
302 SafeInt<T> r = operator ^(lhs, s);
303 return r;
304 }
305
306 template <typename T, typename U>
307 _CONSTEXPR14 T OrOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected