C++ Weekly - Ep 325 - Why vector of bool is Weird

26,700 views

About this video

Hand-picked by a BrighterTube curator · found via Reddit r/learnprogramming thread: What are the YouTube channels you watch as a software developer? · 80% confidence

Shows why std::vector<bool> is a packed bitset specialisation rather than a real container of bools, and the proxy-reference surprises that causes in generic code.

Why std::vector<bool> is a special case and what problems that causes.

Video by C++ Weekly With Jason Turner, played through YouTube's embedded player.

Part of C++ Weekly C++20, C++ Weekly