« first day (2320 days earlier)      last day (749 days later) » 

AAB
AAB
12:23
Hi
C++ binary segfaults at the end
we throw an exception
catch it
and proceed to ending the program
it does a segfault at the end
nwp
nwp
You probably messed up some memory somewhere. ASan might catch it.
Or you could go the Wing Commander route.
AAB
AAB
12:46
lol ok
13:01
Hey guys, sorry if this is a braindead question, I'm kinda new to cpp. According to this question (stackoverflow.com/questions/19215027/…), one can use std::find(begin(myvec), end(myvec) != end(myvec) to check if an iterable contains a specific element. But what if the element I'm looking for is actually the last element? Won't it get ignored by this approach?
@Catyre nope, contrary to the name std::end is not the last element
it's one past the last element
myvec.end() is not an object you can dereference, myvec.back() is the last element
oops, i forgot the `, someObject)`

Ah, I see, that makes more sense
Thanks!
6 messages moved from Lounge<C++>
13:58
@nwp lol "We can't fix it we'll just corrupt the in memory image of a system binary"
nwp
nwp
14:08
I always thought it was the Wing Commander executable, not a system binary, but now that you say that it does sound like it was a system binary. But it doesn't make sense since that would not affect customers' output.
They would have had to write an installer that patches a system binary.
well it's only an in memory patch. So if someone reboots then it's removed

« first day (2320 days earlier)      last day (749 days later) »