logoalt Hacker News

waynecochran06/15/20253 repliesview on HN

A small kitten dies every time C++ is used like its 1995.

    void (*fn)(void*, T) = nullptr;

Replies

tom_06/15/2025

And another one dies every time you need to step through a call to std::function. Whatever you do, the kittens are never going to escape.

show 1 reply
plq06/15/2025

Unless you mutter the magic incantation "C compatibility" while doing it

show 1 reply
zabzonk06/15/2025

did nullptr exist in c++ back in 1995 - i can't remember

show 1 reply