The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Aug 24, 2023
Post comments count 0
Post likes count 2

On writing loops in PPL and continuation-passing style, part 3

Raymond Chen

Explicit shared state.

Aug 23, 2023
Post comments count 0
Post likes count 2

On writing loops in PPL and continuation-passing style, part 2

Raymond Chen

Recursion comes back.

Aug 22, 2023
Post comments count 0
Post likes count 2

On writing loops in PPL and continuation-passing style, part 1

Raymond Chen

Keeping track of what to do next.

Aug 21, 2023
Post comments count 7
Post likes count 3

Inside STL: The different types of shared pointer control blocks

Raymond Chen

Well, some of them, at least.

Aug 18, 2023
Post comments count 1
Post likes count 3

Phantom and indulgent shared pointers

Raymond Chen

The phantom controls something yet holds nothing. The indulgent holds something but controls nothing.

Aug 17, 2023
Post comments count 1
Post likes count 2

What it means when you convert between different shared_ptrs

Raymond Chen

Changing the pointer while controlling the same object.

Aug 16, 2023
Post comments count 1
Post likes count 4

Inside STL: The shared_ptr constructor and enable_shared_from_this

Raymond Chen

Working together through a secret signal.

Aug 15, 2023
Post comments count 7
Post likes count 2

Inside STL: The shared_ptr constructor vs make_shared

Raymond Chen

Where to hide the control block.

Aug 14, 2023
Post comments count 4
Post likes count 7

Inside STL: Smart pointers

Raymond Chen

Simple pointers or more complicated pointers.