JPEG Thumbnailer

Thiago Macieira thiago at kde.org
Thu Aug 21 23:43:15 BST 2008


Ingo Klöcker wrote:
>> > What you really want here is std::auto_ptr with a custom deleter.
>> > There is no shared pointer in this circumstance, so no need to add
>> > the overhead associated with that,
>>
>> True.
>
>Actually, this is not true because unfortunately std::auto_ptr does not
>come with support for a custom deleter. I would have suggested
>boost::scoped_ptr instead of boost::shared_ptr, but boost::scoped_ptr
>also lacks support for a custom deleter. Or did you suggest to write an
>own version of std::auto_ptr with support for a custom deleter?

Neither. I was pointing out that it's an overkill either way.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080822/56a2cec2/attachment.sig>


More information about the kde-core-devel mailing list