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

Method SafeInt

Archive/releases/5/SafeInt_3013p.cpp:5103–5107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5101{
5102public:
5103 SafeInt() throw()
5104 {
5105 C_ASSERT( NumericType< T >::isInt );
5106 m_int = 0;
5107 }
5108
5109 // Having a constructor for every type of int
5110 // avoids having the compiler evade our checks when doing implicit casts -

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected