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

Function AndOperator2

Test/ConstExpr.cpp:270–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269 template <typename T, typename U>
270 _CONSTEXPR14 U AndOperator2()
271 {
272 // Have to explicitly force this operator
273 // to be used
274 U lhs = 3;
275 SafeInt<T> s(1);
276
277 SafeInt<T> r = operator &(lhs, s);
278 return r;
279 }
280
281 template <typename T, typename U>
282 _CONSTEXPR14 T XorOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected