1
Vote

Run-time comparsion vs Compile time

description

in CHandleT instead of
if (false == t_bManaged)
 
we can provide a specializations:
 
template<> CHandleT<false>::CHandleT(CHandleT<true>& rh)
template<> CHandleT<true>::CHandleT(CHandleT<true>& rh)
...

comments