Logo
chmod 777: Security through obscurity.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Template specialization Memes

Posts tagged with Template specialization

Vector Of Bool

C++ Programming
2 months ago 323.8K views 0 shares
Vector Of Bool
So you innocently declare a std::vector<bool> thinking you're getting a nice container of boolean values. But surprise! The C++ standards committee decided to "optimize" it by packing bits together instead of storing actual bools. What you end up with is a space-efficient abomination that doesn't even return real references when you access elements. It's like ordering a pizza and getting a deconstructed molecular gastronomy interpretation of pizza. Sure, it saves space, but now you can't use it with standard algorithms that expect real references, and you're stuck wondering why your code won't compile. The C++ committee's gift that keeps on giving—technically a vector, technically bools, but also technically neither.

Today's picks

Digital Multimeter Voltmeter Battery Voltage Multi Tester Continuity Ohm Volt Amp DC AC Current Resistance Diodes 2000 Counts Electrical Test Meter with Leads Backlight LCD Display

Digital Multimeter Voltmeter Battery Voltage Multi Tester Continuity Ohm Volt Amp DC AC Current Resistance Diodes 2000 Counts Electrical Test Meter with Leads Backlight LCD Display

Affiliate
$9.98
The 404 Social Connection

The 404 Social Connection

Webdev
295.4K views 1 year ago
It's Not About The Help, It's About The Correction

It's Not About The Help, It's About The Correction

StackOverflow
301.5K views 9 months ago