13 hours ago
- The article discusses a bug fix for releasing a non-marshalable delegate on the correct thread, highlighting that a custom deleter for std::unique_ptr must not throw exceptions during construction.
- The solution involves changing the constructor to accept an explicit deleter, moving the potential exception outside the unique_ptr constructor.
- Despite this fix, the author notes that the code is still broken, suggesting further issues with the deleter's construction order relative to the pointer it guards.