I was away from the forums for several months a while ago. Since coming back, I've noticed that questions are answered more quickly and the answers are generally higher quality. So I just wanted to say "atta-boy / atta-girl" to all the people who answer questions here.
for(autoconst& user : forum)
{
user.sendSpam(dhayden, "bon retour par minou \o/");
}
for(autoconst& post : forum)
{
sendIfNewerThanThreeMonths(dhayden, post);
}
You went away so long that C++ has also changed ! now you can get different things from a container, you don't even have to specify the type of thing you want, the compiler knows it from the temporary variable name ! :oD~
It also becomes ruby-ish...
1 2 3 4
for each user of forum
{
user sendSpamTo dhayden;
}