The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
IMO, any use of friends in a class is bad design, and effectively means that all of your class' design is public. As the friend has access to any private data, you cannot modify your design without consulting with the author of the friend.
In large projects, this way leads to madness.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.