@CaptainGiraffe Not at all -- just that he was debating over 23 and 24 inch monitors yesterday, but is actually buying a 27" instead. Should be be really nice.
can anybody please tell me how to get latest g++ and clang versions on Ubuntu? Ubuntu repository is too late :( Or would you guys suggest any other distro?
Your running Linux stacked-crooked 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux — StephenJun 12 at 17:27
the past two nights around 3 AM my router disconnected from the internet, and refused to reconnect, saying my account data is invalid. then it started working again around 6-7...
I feel like C++ has really helped me a lot at being a better programmer. But I can't put it into convincing words. Maybe I'm not convinced that much myself.
@Chemistpp I'd just like to interject for a moment. What you're referring to as "subtle" is, in fact, GNU/subtle or as I've recently taken to calling it, GNU+subtle.
@StackedCrooked Cool. I will use it from now on! And suggest it to others. It is actually quite nice to test things. Saves so much time in setting up each solution
@Xeo Silver Spoon, Servant x Servant, Blood Lad, The World God only Knows S3, Watashi wa motenai, Love Lab, Highschool DxD S2, Danganronpa. It's a good season IMO.
What is the best method for removing while going over a collection? Normally I make a list of things I want to remove whilst going through, then do it afterwords.
@Chemistpp allows us to provide arguments, allows us to use stdin, and the textbox isn't absurd. I don't know another that has all three of those. Though Coliru recently became unstable, so....
@Pawnguy7 that's the best method
for(auto it=c.begin(), it!=c.end(); /*THIS AREA BLANK*/) {
bool delete_this_one = false;
//stuff
if (delete_this_one) it = c.erase(it);
else ++it;
}
@sehe If he means "container" as it's defined in the standard, then he sort of can (i.e., he codes against the spec, and any non-standard container still has to meet the spec, or it's not a container).
@MooingDuck for which intstance though... because my thought was that if you return *this, maybe you are returning the address for the RHS (thus modiying b in c=b+a) but I guess this is not the case
@Chemistpp operator+ should not return a reference, it should return a value.
wait....
"because my thought was that if you return *this, maybe you are returning the address for the RHS" What? I think I misunderstood this. WTF are you talking about?
@MooingDuck I think I have forgotten the symantics. If you do c=b+a. (and they are classes, not defined types) would operator= get called for c or the result of (b+a)?