kneekap@lemmy.world to Programmer Humor@programming.dev · 13 days agoIt's not meant to belemmy.worldimagemessage-square9fedilinkarrow-up1195cross-posted to: programmerhumor@lemmy.ml
arrow-up1195imageIt's not meant to belemmy.worldkneekap@lemmy.world to Programmer Humor@programming.dev · 13 days agomessage-square9fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarefxomt@lemm.eelinkfedilinkEnglisharrow-up34·edit-213 days ago#include <vector> #include <algorithm> int main() { int a; std::vector<std::vector<int>> v; std::vector<std::vector<int>>::const_iterator it = std::find(v.begin(), v.end(), a); } assaults you with 42 errors, C++ templates are a joy 😊
#include <vector> #include <algorithm> int main() { int a; std::vector<std::vector<int>> v; std::vector<std::vector<int>>::const_iterator it = std::find(v.begin(), v.end(), a); }
assaults you with 42 errors, C++ templates are a joy 😊
But like…what’s the real bug?