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

Function SafeCast

Archive/releases/5/SafeInt_3013p.cpp:5025–5028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5023// and handle errors how you like
5024template < typename T, typename U >
5025inline bool SafeCast( const T From, U& To )
5026{
5027 return SafeCastHelper< U, T, GetCastMethod< U, T >::method >::Cast( From, To );
5028}
5029
5030template < typename T, typename U >
5031inline bool SafeEquals( const T t, const U u ) throw()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected