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

Function RShiftOperator

Test/ConstExpr.cpp:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231 template <typename T, typename U>
232 _CONSTEXPR14 T RShiftOperator()
233 {
234 // Have to explicitly force this operator
235 // to be used
236
237 T lhs = 3;
238 SafeInt<U> s(1);
239
240 T& r = operator >>=(lhs, s);
241 return r;
242 }
243
244 template <typename T, typename U>
245 _CONSTEXPR14 U RShiftOperator2()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected