MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xxfw9i/cppanditsvectorbooleans/19srz4k2ool2b/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 10d 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 9d ago Man Up 17 u/PastaPuttanesca42 9d ago What kind of response is that? Do you actually have anything to say?
-18
Man Up
17 u/PastaPuttanesca42 9d 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 9d ago
Because when I write a function template
that internally does
foo<bool> is broken.