Fix ttd_unique_free_ptr emulation through ttd_shared_ptr
commita56c67e8307ac7b8d6d032a10bab32ea190189e1
authorcirdan <cirdansw@gmail.com>
Wed, 6 May 2015 19:34:04 +0000 (6 21:34 +0200)
committercirdan <cirdansw@gmail.com>
Wed, 6 May 2015 19:34:04 +0000 (6 21:34 +0200)
tree4eec9c4b82fcf1b69936ede1d2a5a4a549c0b577
parentb7ba3db04042af4b08e1047be01cc47c9cbc4a20
Fix ttd_unique_free_ptr emulation through ttd_shared_ptr

The constructor of ttd_unique_free_ptr, when using ttd_shared_ptr,
lacked the right deleter in the constructor. Also, we add a proxy
function for free to be used as deleter, since using free directly
seems to confuse MSVC because the cast required for overload
resolution apparently messes up the calling convention.
src/core/pointer.h