memesearch
C++ Is Unsafe as Fuck

C++ Is Unsafe as Fuck

Download Find similar pictures
Text on the meme
C++ is unsafe as fuck bool has_pair(const std::vector<int>& vec) { for (size_t i = 0; i < vec.size() - 1; i++) { if (vec[i] == vec[i + 1]) { return true; } } return false; } Even this innocent-looking piece of code has a major flaw in it. Can you spot it anon? There is no error in this code. C++ is perfect and this is perfect C++.
What it means

A forum-style screenshot shows a short C++ function that checks whether a vector contains adjacent equal elements. One post asks viewers to find the major flaw, while the reply humorously insists that the code is flawless and that C++ is perfect. The joke mocks programmers who defend unsafe or problematic C++ code despite subtle bugs or questionable practices. EN: A forum-style screenshot shows a short C++ function that checks whether a vector contains adjacent equal elements. One post asks viewers to find the major flaw, while the reply humorously insists that the code is flawless and that C++ is perfect. The joke mocks programmers who defend unsafe or problematic C++ code despite subtle bugs or questionable practices.

Objects
Tags
Source
Type
image
Size
703×800 · 81.4 KiB
Mood
sarcastic, defensive
Language
en
Added