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

Function TestCasts

Archive/releases/4/TestCompile.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template <typename T, typename U>
16void TestCasts()
17{
18 SafeInt<T> st;
19 U u = st;
20 bool b = st;
21#if !defined SAFEINT_VS_VERSION
22 float f = st;
23 double d = st;
24 long double ld = st;
25#endif
26 u++;
27}
28
29template <typename T, typename U>
30void TestConstructors()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected