|
|
|
@ -82,7 +82,7 @@ namespace mrw { |
|
|
|
|
typedef mrw::AutoResource<bfd*, int(*)(bfd*), &bfd_close, int> AutoBfd; |
|
|
|
|
template<class T> class Auto { |
|
|
|
|
public: |
|
|
|
|
typedef mrw::AutoResource<T, void(*)(void*), &free, T, T(0)> Free; |
|
|
|
|
typedef mrw::AutoResource<T, void(*)(void*), &free, int, 0> Free; |
|
|
|
|
}; |
|
|
|
|
@endcode |
|
|
|
|
@param RESOURCE_TYPE type of the resource to manage |
|
|
|
@ -436,7 +436,7 @@ namespace mrw { |
|
|
|
|
*/ |
|
|
|
|
template<class T> class Auto { |
|
|
|
|
public: |
|
|
|
|
typedef mrw::AutoResource<T, void(*)(void*), &free, T, T(0), void*> Free; |
|
|
|
|
typedef mrw::AutoResource<T, void(*)(void*), &free, int, 0, void*> Free; |
|
|
|
|
private: |
|
|
|
|
/** @internal
|
|
|
|
|
work around compiler warning: |
|
|
|
|