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

Function OrOperator2

Test/ConstExpr.cpp:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319 template <typename T, typename U>
320 _CONSTEXPR14 U OrOperator2()
321 {
322 // Have to explicitly force this operator
323 // to be used
324 U lhs = 3;
325 SafeInt<T> s(1);
326
327 SafeInt<T> r = operator |(lhs, s);
328 return r;
329 }
330
331 template <typename T, typename U>
332 _CONSTEXPR14 bool SafeCastTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected