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

Function DivOperator

Test/ConstExpr.cpp:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168#if CPLUSPLUS_STD == CPLUSPLUS_14
169 template <typename T, typename U>
170 _CONSTEXPR14 T DivOperator()
171 {
172 // Have to explicitly force this operator
173 // to be used
174 T lhs = 3;
175 SafeInt<U> s(2);
176
177 T& r = operator /=(lhs, s);
178 return r;
179 }
180
181 template <typename T, typename U>
182 _CONSTEXPR14 T AddOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected