unique-ptr

Tag

Cards List
#unique-ptr

Creating a fake agile wrapper that is technically agile but is not useful outside its home apartment, part 5

The Old New Thing (Raymond Chen) ↗ · 2026-08-07 Cached

Raymond Chen explains how to use std::unique_ptr to manage a registration cookie in a fake agile wrapper, discussing integer-to-pointer round-tripping and the wil::unique_any alternative.

0 favorites 0 likes
#unique-ptr

Making an agile version of a Windows Runtime delegate in C++/WinRT, part 8

The Old New Thing (Raymond Chen) ↗ · 2026-07-29 Cached

The article discusses a fix for exception safety in C++/WinRT when creating an agile delegate, addressing the issue of unspecified lambda capture construction order to prevent reference leaks.

0 favorites 0 likes
#unique-ptr

Making an agile version of a Windows Runtime delegate in C++/WinRT, part 6

The Old New Thing (Raymond Chen) ↗ · 2026-07-27 Cached

Part 6 of a series on creating an agile Windows Runtime delegate in C++/WinRT, fixing a potential exception issue with std::unique_ptr's custom deleter constructor.

0 favorites 0 likes
← Back to home

Submit Feedback