I was wondering if there is a way to use unique_ptr with Windows HANDLEs?
unique_ptr
I was thinking to replace the std::default_delete with s
std::default_delete
yet another solution
std::unique_ptr< void, void(*)( HANDLE ) > uniqueHandle( file, []( HANDLE h ) { ::CloseHandle( h ); } );