« first day (1259 days earlier)      last day (3686 days later) » 

1:00 PM
@Rapptz I'd say both.
 
user152949
Hi all
 
So apparently same-sex marriage comes into legality tonight at midnight, in the UK.
 
user1804599
Gutentag.
 
I had the temerity to consume food this morning so no nap for me
 
Does your evil know no bounds?
 
user152949
1:09 PM
who discussed async io?
 
I think everyone, in last year
 
@IngeHenriksen in the last hours nobody
not in here
 
lol
 
user1804599
4 hours ago, by rightfold
But async/await sucks because it is explicit.
 
user1804599
25 mins ago, by sehe
Depending on how much code you can afford to write Asio is enough. In fact, no libraries at all could be enough. There's Casablanca for windows and some linux support — sehe 6 secs ago
 
user1804599
1:12 PM
That's about it.
 
user152949
@rightfold Ok, thanks.
 
Async io police?
 
user152949
:) No
 
Oh WTF. Debugging... break on any exception, prety please, dear IDE.... landing in the catchall-handler. Now digging into where something has been thrown -.-
 
user1804599
If async I/O is explicit, it's already terrible.
 
user1804599
1:15 PM
VM must handle it for me.
 
user1804599
Just let me spawn my cheap threads.
 
user152949
@ArneMertz Tried std::set_unexpected() ?
 
@rightfold what...
 
@rightfold lol VM
 
user1804599
@Nick_Craver @marcgravell Won't surprise me given the quality of chat search.
 
@rightfold heh
@R.MartinhoFernandes \o/
 
@IngeHenriksen how does that tell me where the throw happens?
 
user1804599
Any debugger can give you the stack trace.
 
user152949
@ArneMertz Breakpoint and watch stack?
 
user1804599
Also lol debuggers.
 
1:19 PM
GDB sets a breakpoint in __cxa_throw (and maybe other stuff)
 
user152949
@ArneMertz ..only unexpected exceptions though
 
@ArneMertz just use Windows+MSVC
 
@Abyx well, that'll take some estimated 1500 developer days to port the program...
 
and also tests. lots of tests (another 3000 dd to write'em)
 
@rightfold what is this video hat I am watching/listening to?
 
user1804599
1:21 PM
@thecoshman What is a video hat?
 
@rightfold dconf video
 
user1804599
The stuff he says about the planes.
 
user1804599
I couldn't find exactly where he says that because YouTube is primitive as fuck.
 
@Abyx no... that would take yet another 1500 days to make the architecture and testing frameworks fit to actually write meaningful tests ;-)
 
1:22 PM
Yes, YouTube is "primitive as fuck".
 
@rightfold but fuck is so good :S
 
user1804599
Even relatively primitive species fuck!
 
Shame you're too primitive
 
user1804599
@LightnessRacesinOrbit can't search spoken text => primitive as fuck.
 
@rightfold Are you some kind of moron?
 
user1804599
1:24 PM
This reminds me.
 
@LightnessRacesinOrbit Are you new here?
 
@LightnessRacesinOrbit a rather special kind
 
@LightnessRacesinOrbit yeah he's a very rare kind of moron
 
Stop the timers guys. After 112 hours I finally took a crap.
 
112 as in the emergency—oh.
 
1:26 PM
lol
I feel lightweight, fast and multithreaded.
 
@R.MartinhoFernandes Must be.
@Jefffrey :)
 
> * (bug 62497) SECURITY: Add CSRF token on Special:ChangePassword.
It's a really good software when you can forget CSRF tokens and sending forms still works
I wondered for a second if they manually check the tokens in every form handler, but it's MediaWiki so the answer is probably yes
 
@Xeo We should totally play it while you guys are around Berlin in June.
 
Okay the answer is definitely yes :allears: gist.github.com/TheCatPlusPlus/f7f728fd92979f42877a
 
Xeo
@R.MartinhoFernandes I'm scared
Also, isn't it usually pretty long?
OTOH, we have a day and full night, really
 
1:37 PM
ah damn why must it be exactly that weekend -.-
 
Usually takes us some three hours.
 
Speaking of loungedotcppdotnet, did you send that email Robot
 
Not yet.
I see that you changed the front page.
 
I think we're set for officialness and stuff
 
We're a thing!
@Xeo When are you coming/going?
 
Xeo
1:43 PM
Coming Friday evening, going Sunday morning
really late and really early, respectively
(1am on Friday, 9am on Sunday)
 
Xeo
Was the cheapest option without needing vacation time
Any earlier on Friday, or any later on Sunday would've gotten expensive quick
 
@Xeo Where do you live?
 
"its not working" Really? That's all you have to say about it? Then this is all I have to say about it, too! — Lightness Races in Orbit 45 secs ago
 
Xeo
1:48 PM
@AndyProwl West Germany
 
damn that facking popup login that pops up in front but does not take focus ^^
 
@Xeo Ah, I see. I am considering to go by car, so in case you were living somewhere between Berlin and Czech Republic, I could have given you a lift. Plan not applicable.
 
Xeo
I already bought the train ticket anyways. And cancelling for 15eur is kinda stupid when they cost 68
 
@AndyProwl depends on the metric you apply
 
user1804599
@CatPlusPlus Manually? Chinese CSRF token check farm.
 
1:51 PM
@ArneMertz What metric would make it applicable?
 
@Xeo cancelling does not cost you if you do it before the day of travel
 
Xeo
@AndyProwl Also, I am living between Berlin and Czech - just the other way around :P
 
lol
 
Xeo
@ArneMertz It does, for Sparpreis tickets
 
@AndyProwl the metric Xeo just mentioned for example :-)
 
1:51 PM
ah, I see :)
 
user1804599
@FredOverflow I cannot find the C+ LOL picture anymore. :<
 
@Xeo 68 Euro for one way Sparpreis? or both directions?
 
Xeo
both ways
29 and 39
 
I guess you'd have to pay 30€ for cancelling both ;-)
 
Xeo
nah, it's a collective ticket. 15eur to cancel both
 
1:54 PM
> ovulation discount
 
@LightnessRacesinOrbit on what? baby toys?
 
I like how it says "if you're old or gay, you can't win, fuck off, but you should just go have sex anyway"
@ArneMertz yes
 
@LightnessRacesinOrbit "fuck off" is an interesting choice of words.
 
in the UK that ad would be hit for homophobic discrimination
cos gays can't win
because the UK is a cesspit of PC nonsense
 
@LightnessRacesinOrbit lolwut
 
1:58 PM
I'm serious
 
Feb 3 at 22:28, by FredOverflow
@rightfold Do you still have the "C+ lol" picture? :)
 
@R.MartinhoFernandes yeah I considered leaving off the final phrase, as redundant
 
user1804599
:D
 
@rightfold What's your current take on D?
 
user1804599
I haven't used it since ages.
 
user1804599
2:00 PM
But I find it a bit of a mess.
 
user1804599
And the template syntax is ugly IMO.
 
user1804599
Also null. :(
 
what's wrong with null.
 
Xeo
Tri-Optional :P
 
@LightnessRacesinOrbit need Macky D :P
 
2:11 PM
hmm so do I
I love nullability btw
 
user1804599
@Xeo Maybe (Maybe T) :D
 
Nullability outside of explicit optionals is silly
So there apparently is a goat simulator game
 
user1804599
@CatPlusPlus One of its advertised features is "bugs."
 
goat simulator bitch
> Goat Simulator is a small, broken and stupid game. I t was made in a couple of weeks so don't expect a game in the size and scope of GTA with goats
 
2:20 PM
D sounds ok...
 
> scope of GTA with goats
o_O
 
the trailer is amazing
 
Xeo
GoaTA
 
cos
Can you explain why you suddenly deleted this question without warning or explanation? People were working on that for you, so it's pretty rude to just up and nuke it (and their content) without saying a thing. — Lightness Races in Orbit 8 mins ago
 
@user2485710 If that's your question, then your example was unrelated. Also, that question would not be a good fit for SO, because it's overly broad. — sehe 1 min ago
 
2:29 PM
broad yes
not convinced the example was unrelated
oh, as there's no inference but only conversion. yes ok
Ah, @Arne's fixed it now
 
TIL std::vector<string> vs2{0};
so broken O.O
 
I dislike the new initializers, mostly because they weren't there from the start and you end up with crap like that
typical C++11, frankly
they shouldn't have allowed {} to be used for normal ctor arg lists
of course for this specific case we have to put most of the blame on "0 for nullptr", so there's not a lot we can do there
 
well, I recently read on twitter about vector<int>{3} vs vector<string>{3}, but it just came to me how weird vector<string>{0} is, then ;_;
 
i think C++ sucks.
 
0
A: is there any difference between conditional statment and control statment in c?

Lightness Races in OrbitThe question your friend was asked is fundamentally broken, since C defines no such thing as "control statements". Even if it did, my intuition is that it ought to cover all of those keywords. Therefore, trying to analyse what does and does not fall under that umbrella is a fool's errand. Given...

give me upvotes
er? flags? on a nonflagworthy message?
 
user1804599
2:40 PM
We all think so.
 
I missklicked. flagged instead of plonking and couldnt unflag
 
Xeo
that's a big misclick
 
yeah. hadn't plonked anyone yet
unskilled plonker :P
 
user1804599
Walk the plonk!
 
@ArneMertz hah
 
user1804599
2:44 PM
@ArneMertz Mr. and Mrs. Klick.
 
0
Q: How to return Pointer to a object from List of objects using iterators

user3447353When I traverse a list of objects and I have to return the pointer to one of my object when I have a iterator pointing to it, how I do so ? In short can one tell what should I put in the place of ??? #include <iostream> #include <list> using namespace std; class Node { private: int name; ...

Please, somebody do something!
 
Xeo
Ugh
 
@Yakk I replaced the reinterpret_cast hack with template wankery ;) — FredOverflow 3 mins ago
 
That edit history -.- I should work instead...
 
@Lightness s/seive/sieve/
 
2:51 PM
@ArneMertz lol SO trying to be smart
 
@FredOverflow 5 revisions are better than the actual ~15, especially if most of them were only typo fixes.
 
@LightnessRacesinOrbit stackoverflow.com/questions/2512212
 
@LightnessRacesinOrbit You have right, I made my answer clearer. — Peter Horvath 6 mins ago
Vladisms
@R.MartinhoFernandes I have no idea what you mean!
 
@LightnessRacesinOrbit Ha! I can see the German in that sentence.
 
@HamZa I don't get it.
 
2:55 PM
@LightnessRacesinOrbit related to php being able to iterate over objects with foreach
 
@HamZa very loosely related
 
ok nvm
 
:)
0
A: How to return Pointer to a object from List of objects using iterators

Vlad from MoscowNode* getNodeObjectPointer( int n ) { list<Node>::iterator it = mylist.begin(); while ( it != mylist.end() && it->getName() != n ) ++it; return ( it == mylist.end() ? NULL, *it ); }

here he comes
 
deleted already
 
heh, that didn't last long
just tried to comment:
> Why did you obfuscate the function so much? And why did you leave in a semantic error? Node* cannot be initialised from Node&.
Why did you obfuscate the function so much? What was the purpose? And why did you add errors? (mylist.push_back(1) won't compile) — Lightness Races in Orbit 39 secs ago
got 'im
 
3:06 PM
Are you sure this obsession is healthy?
@LightnessRacesinOrbit Won't mylist.push_back(1); use the implicit conversion ctor?
 
3:28 PM
@R.MartinhoFernandes it will... and should compile
so definitely not a healthy obsession ;-)
 
0
Q: BAADF00D Access Violation

user3473064Sorry to ask for an answer to something so probably simple, but I can't figure this one out by myself, it seems. So, I have a header file, like so: #ifndef LEVELMAP_H #define LEVELMAP_H #include "Constants.h" class LevelMap { public: LevelMap(int map[MAP_HEIGHT][MAP_WIDTH]); ~LevelMap(); int ...

lol at title?
 
0
A: How to return Pointer to a object from List of objects using iterators

JefffreyEvery container in C++ has its pros and its cons. std::list, or std::forward_list for that matter, are not supposed to be random-access containers. Trying to add such a functionality is not only discouraged (at least by me) but is also objectively less performant than just using the right conta...

doesnt answer the question @Jefffrey
 
I know, misread.
 
@Jefffrey 0xBAADF00D is used by MSVC to mark freed memory in debug mode IIRC
so yes, you can get access violations there :D
 
TIL
 
3:41 PM
actually, it's uninitialized allocated memory.
malloc or a new'd POD
 
@Jefffrey There's a nice list here: en.wikipedia.org/wiki/…
 
> DEFEC8ED = "Defecated", Used for OpenSolaris core dumps
6
I was expecting that one
 
3:54 PM
Man, I wish Google+ was using Markdown. It is so frustrating not to have any kind of reasonable expressive power with the text there.
 
user1804599
lol
 
user1804599
My comment got six upboats in half a minute.
 
user1804599
This is not valid C++ code. Please show your real code. — rightfold 1 min ago
 
@Jefffrey SOLARIS or AIX also invented the EIEIO code (after Old McDonald, indirectly referring to "buying the farm")
Soldiers who died were euphemistically said to "have bought the farm" (due the the financial compensation)
 
@R.MartinhoFernandes fuck
well the Node(int) ctor should be explicit
 
4:03 PM
@sehe nice
 
error 0xEIEIO: The server has bought the farm (~= kernel panic)
 
what do you do when you find someone using new std::array<const char*, 42>[10]?
are you allowed to kill for self defense?
 
@Jefffrey you appreciate the THGTTG reference
@Jefffrey that's an absolute right; the guarding clause is builtin to the question
 
Good. I just need to buy a ticket for Dynamicallocation Island.
 
@Jefffrey Stand your ground and kill the motherfucker.
 
4:12 PM
@sehe But 10?
Should be new std::array<const char*, 42>[17];
I find it disappointing that in this universe 17 + 23 is not 42.
 
I mean, at the beginning you just think that in void func(std::array< const char*, 3 >*) the guy is just using pointers like references and what he wants to do is pass an array of C-string (#killme) to a function. But when he tells you " a dynamically allocated pointer to a unidimensional array is by definition a bidimensional array" you just lose everything...
4
Q: Cast between const char* [][3] and std::array< const char*, 3 >*

Jonathan MeeI need a way to cast between these two types of variables: std::array< const char*, 3 >* foo; const char* foo[][3]; Because I need to be able to pass both types to a function. The function can be defined either of these ways, whichever makes conversion easier: void bar( std::array< const char...

^ reference
 
Take it away, take it away!
 
and when you see 5 upvotes and no downvotes you begin to lose hope in humanity really
(unless you are one of those that don't use downvotes for punishing)
 
I'm going to put forth the notion that a question starting with "I need a way to cast" is always the wrong one.
 
@R.MartinhoFernandes that's just leet for 2
> "I need a way to cast the first stone" - works for me
 
4:30 PM
@ScarletAmaranth ok finally finished Golden Time and Kill la Kill.
 
@StackedCrooked haven't seen kill la kill yet... GT ended fairly well, I didn't understand the bridge scene too well but meh
 
tacked-on happy ending
I won't complain though.
 
I ain't even mad he's with Koko
 
I would have been 200% happier if he ended up with Linda.
But hey.
 
yeah
Linda I prefer, but I don't mind koko
Linda messed up, he's even made sure like twice she didn't love him and she confirmed
 
Damn monogamy.
Always intervening.
 
It proved really hard to click on the hyperlink though xD
 
she tore up the photo at the river and then told him on the way to high school reunion that they were just friends
bad for her, she was being silly
 
> 2D-kun confirmed best character.
lol
 
"surely" :D
Linda is the most interesting character
I think she beats Koko at interesting-ness
 
Xeo
4:41 PM
No talk about KlK please
 
ok
@ScarletAmaranth also hasn't seen it yet.
 
Xeo
yeah, I won't see it until next weekend :(
 
If anyone's interested, the AI competition for the 2014 CS Games is up on Github. So you can see how well you would have fared.
 

« first day (1259 days earlier)      last day (3686 days later) »