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

Function TestCasts

Archive/releases/3/TestCompile.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected