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

Function OrOperator

Test/ConstExpr.cpp:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306 template <typename T, typename U>
307 _CONSTEXPR14 T OrOperator()
308 {
309 // Have to explicitly force this operator
310 // to be used
311
312 T lhs = 3;
313 SafeInt<U> s(1);
314
315 T& r = operator |=(lhs, s);
316 return r;
317 }
318
319 template <typename T, typename U>
320 _CONSTEXPR14 U OrOperator2()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected