« first day (1012 days earlier)      last day (3934 days later) » 

11:00 PM
@BartekBanachewicz btw cryptexofficial.com/cryptex-full-discography . not completely my cup of tea but it's not bad?
 
Don't fall asleep now
that would be a waste of time
 
Ell
I just had a strange thought about pedophillia and robots
 
I agree, it is odd that you are a paedophilic robot.
 
@Ell Wanna talk about it?
 
I might go to sleep early tonight.
 
Ell
11:14 PM
What if someone made a little boy sex robot
I feel like it should be illegal
 
That's related to the "thought crime" discussion.
 
Ell
Ill have to read into it
 
For the first time ever I want operator auto.
 
@Ell Well, that discussion has been had with robot sex dolls, I suppose.
@StackedCrooked Good to plan ahead. You'll have at least 22 hours to change your mind!
 
Oh, dammit.
 
11:20 PM
Yep. Me too. Wife just came to make me tea. As a bribe to get me to come to bed as well.
I might as well.
 
I'm just tired.
A bribing wife is a better wife than a nagging wife.
7
 
Yup. I'm happy with that.
 
Aw yeah Populist badge!
 
Et tu Brutus
 
Thats 2 gold badges on the same answer (Reversal and Populist)
 
11:33 PM
Cheating :/
 
Oh hush you have 16 times more rep than I do T_T
 
@Borgleader ahaha, I think @Xeo is the only other one of us here who have done that.
 
Precisely. And no such badgers
 
You have to answer shitty questions for that :P
 
Is there any other kind?
 
11:34 PM
Interesting questions.
 
namespace repwhore_badges { Populist, Reversal }
 
@Borgleader cough. enum classes
 
9
A: static and dynamic memory allocation of objects in C++

BorgleaderSadly you just can't. There's a whole section in one of the books by Scott Meyer's where he goes on about the challenges of trying to achieve this and the short of it is it's not possible. More Effective C++ - Item #27: Requiring or prohibiting heap-based objects. Ok here's one of the problems ...

this one was interesting :)
 
Can't blame me by saying I didn't repwhore enough :/
 
I had to fish my More Effective C++ book to properly answer it
 
11:36 PM
@Borgleader You didn't even mention allocators. I'm disappoint.
 
I don't know crap about allocators that's why
 
Me neither. But I do know they can be used to track allocations in a lot of scenarios
 
@Borgleader I suspect this question is an example of the XY problem.
 
Why he needs it? Yeah probably, but it's still interesting.
 
He might simply be tracking down a memory leak.
Which is easy to find with Valgrind.
 
11:42 PM
Can't use valgrind on windows afaik
although MSVC probably has something
 
Assuming he's on Linux.
 
Ell
Looks like they be using Haskell for quantum computers, Google quipper
 
What is a quipper?
Oh, it's a programming language?
> Function templates taking URefs are the greediest functions in C++.
^ From Scott Meyer's talk.
 
Ell
Sorry, the uppercase g was misleading. I was saying google quipper because I'm reading it on this news app and I can't find out how to get the link
 
@StackedCrooked Yup. Overload resolution is pattern matching:
 
Xeo
11:48 PM
@StackedCrooked Well, it's true.
 
boost::apply_visitor(make_visitor(
            [](Teacher const& v) { std::cout << "Teacher salary: " << v.salary << "\n"; },
            [](Student const& v) {}),
        p.second);
^ it's like FP, really
 
Xeo
Nothing can match better than a universal reference.
 
s/better/more/ even
 
Xeo
@sehe Eh, kind of.
 
"like"
 
11:49 PM
@Xeo you could say that about varargs as well, not?
 
Xeo
@StackedCrooked wut?
You mean the ellipsis?
 
@StackedCrooked Nope. can't even take std::string. Trivially copyable stuff
 
@Xeo yea
 
Xeo
Nah
 
@sehe Oh, right.
 
Xeo
11:50 PM
That has by definition lowest rank in overloading, and also is only for trivial stuff.
 
But anything can match const T& as well. And that's not nearly as greedy.
@sehe The tea is cold by now.
 
@sehe Wrong.
 
@StackedCrooked darn. yep
 
and so is your wife :P
 
@DeadMG Well it can't. Tell me more
@StackedCrooked She wrong?!
 
11:52 PM
that's UB, not an overload resolution failure
 
@sehe can you recommend a nice asm book
 
I can recommend a nice book, but it's not about asm.
 
@StackedCrooked .... uhm what is it?
 
Schildt.
 
@StackedCrooked Don't feed them.
 
11:56 PM
@sehe when did i get demoted
 
So.. um this doesn't work: template<typename T, typename U = std::vector<T>> so I googled it
but Xeo's answer said it's supposed to
 
I recently had a look at the bin. And it was all @EiyrioüvonKauyf.
 
@Rapptz yeah no problem
 
Evening
 
I'm confused. Can someone tell me why it doesn't work? I tried it here, SSCCE and all
 
11:57 PM
Does the mobile version of chat.SO lack of the "reply to specific message" and "see what a message is a reply to" features?
 
@DeadMG My compiler treats it as an error.
 
that old GCC probably won't accept default function template arguments
 
@StackedCrooked lol are you looking at the rightfold + me one
 
Well, I'm using GCC 4.8.1 (that's 4.7.2) with the same behaviour.
 
@Rapptz You have to include <vector>.
 
11:58 PM
@sehe What it really should be.
 
@StackedCrooked Nah, makes no difference.
 
@DeadMG That /cc @Rapptz
 
@Rapptz Compiles for me in QtCreator when I include vector
 
@Borgleader Hm. That's interesting.
 

« first day (1012 days earlier)      last day (3934 days later) »