and then evaluates disposing expression <tt>pFunc( p )</tt>
*/
template <typename T>
- static void retire_ptr( T * p, void (* pFunc)(T *))
+ static void retire_ptr( T* p, free_retired_ptr_func pFunc )
{
- retired_ptr rp( reinterpret_cast<void *>( p ), reinterpret_cast<free_retired_ptr_func>( pFunc ));
+ retired_ptr rp( p, pFunc );
retire_ptr( rp );
}
and then evaluates disposing expression <tt>Disposer()( p )</tt>
*/
template <typename Disposer, typename T>
- static void retire_ptr( T * p )
+ static void retire_ptr( T* p )
{
retire_ptr( p, cds::details::static_functor<Disposer, T>::call );
}