MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xxfw9i/cppanditsvectorbooleans/19srz4k2ool2b/
r/ProgrammerHumor • u/Recent-Analysis-6880 • 19d ago
214 comments sorted by
View all comments
Show parent comment
30
Because when I write a function template
foo<T>
that internally does
std::vector<T> bar; [stuff happens] T* ptr = &bar[7]
foo<bool> is broken.
-18 u/geekosas 17d ago Man Up 17 u/PastaPuttanesca42 17d ago What kind of response is that? Do you actually have anything to say?
-18
Man Up
17 u/PastaPuttanesca42 17d ago What kind of response is that? Do you actually have anything to say?
17
What kind of response is that? Do you actually have anything to say?
View all comments
Show parent comment
30
u/PastaPuttanesca42 17d ago
Because when I write a function template
that internally does
foo<bool> is broken.