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

Function RShiftOperator2

Test/ConstExpr.cpp:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244 template <typename T, typename U>
245 _CONSTEXPR14 U RShiftOperator2()
246 {
247 // Have to explicitly force this operator
248 // to be used
249 U lhs = 3;
250 SafeInt<T> s(1);
251
252 SafeInt<U> r = operator >>(lhs, s);
253 return r;
254 }
255
256 template <typename T, typename U>
257 _CONSTEXPR14 T AndOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected