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

Function AddOperator

Test/ConstExpr.cpp:182–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181 template <typename T, typename U>
182 _CONSTEXPR14 T AddOperator()
183 {
184 // Have to explicitly force this operator
185 // to be used
186 T lhs = 3;
187 SafeInt<U> s(2);
188
189 T& r = operator +=(lhs, s);
190 return r;
191 }
192
193 template <typename T, typename U>
194 _CONSTEXPR14 T SubOperator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected