The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts

On trying to log an exception as it leaves your scope

You can't watch it from an object on the outside.

Creating a generic insertion iterator, part 2

Satisfying the iterator requirements, perhaps with a little cheating.

Creating a generic insertion iterator, part 1

We provide the boilerplate; you provide the smarts.

How do I create an inserter iterator that does unhinted insertion into an associative container like std::map
?

Curiously missing from the standard library.

My electric toothbrush was acting up, so I tried to reboot it

It didn't help.

A pattern for obtaining a single value while holding a lock

The immediately-invoked lambda that returns a value.

A brief and incomplete comparison of memory corruption detection tools

A short overview, definitely incomplete.

Memory corruption from outside the process looks like space aliens

The write isn't visible to your process, just the effect of the write.

Be mindful of temporal terms in documents: What is the reference point in time?

What is your implied point in time for the reference?