If you use C++ for anything at all I hate you with every fiber of my being

Follow

@sir for (auto i = complaints.begin(); i != complaints.end(); ++i) { i->meh(); }

@rah
The fact that you have to write that instead of something like:
```
for comp in complaints { comp.meh() }
```
To use iterators ...
@sir

@zentauro @sir You don't. With C++11 you can also do:

for (auto& comp: complaints) { comp.meh(); }

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml