« first day (1633 days earlier)      last day (3541 days later) » 

23:00
what I don't get is the global picture. For some reason, I understand pieces of this code, but if you ask me to reproduce it I cannot. So I don't really understand it. That's why I say it will be a good idea for one to write an explanation of how the bloody thing works.
@FilipRoséen-refp that's one point that it was not obvious for me
it's not that complicated, all that is required is to know about the quirks in [temp.*]
@vsoftco get a copy of the standard, forget all you think you know, read it, ???, profit.
4
Question: event aggregation good or bad?
What if keyboards kept track of how many keystrokes they've been subject to since their manufacture date
Like an odometer but for keyboards
@FilipRoséen-refp indeed. And imo very few people know about them. I know I should learn them, but not from the standard :) The standard is just more abstract than I am used to deal with, and I deal with lots of abstractions in daily life.
@vsoftco the standard is the best resource for getting to know the quirky parts of.. *drum-roll* the standard.
23:03
@FilipRoséen-refp I know, I guess I am too lazy to do the research for myself and would like someone to write about this damn piece of code :)
i fucking suck with anything template-related. urgghhh
@vsoftco if you think you will get to know what you want to know by sitting on your ass asking questions that lack substance in chat rooms such as The Lounge, I can save you some trouble and confidentially say; you won't. `
goes to definitive c++ book list
It's not "Scott Meyers'" how move constructors work, it's more like "Stewie Griffin" world domination.
@FilipRoséen-refp drum-roll
23:04
@vsoftco there isn't that much to write about it; it was explained above in 2 sentences. what more are you looking for?
@Blob one day there'll be a language that can do everything c++ can where meta programming isn't an emergent thing
@vsoftco want to know how ADL works? read a decent book, or better yet; check the standard.
@Pris like D?
like D without a garbage collector :D
^
I should learn D
I wish I had rightfold's enthusiasm for learning new things
i've read like half of Andrei's book on D but haven't written any myself :|
23:05
@vsoftco I could step up to the plate and explain the snippet in detail, but then I'll probably have to start a blog.. and with a blog I would write loads and loads, and get cancer (cause I smoke a lot when I write).
@FilipRoséen-refp yeah I know, in general I am quite anxious to do research on my own, I am just saying that I tried understanding the code by myself (and yes I know how ADL works) but failed. Would have liked someone to take it line by line and explained it. Nothing more. I am not asking for this, I said it will be nice :)
i read in class or train when i had nothing to do.
I can't read programming books without having a computer in front of me and actually doing stuff as I read. Otherwise I just forget everything I read
What is this D lang
@FilipRoséen-refp I'm sure you can post an explanation on isocpp.com
23:06
Should I want it?
@vsoftco raise me $50 and I'd do it; that'd money would buy me food for the last portion of this month
@Pris same, but i do other crap when i actually have access to a computer -.-
Is D even viable right now
I hear it's already split
@Cinch Yes.
split how?
What if SO allowed you to put up CASH MONEY bounties
23:08
Frankly, that code shocked me. It's not like doing *(int*) &Foo = 42 to set up the first member in an aggregate.
@vsoftco but honestly now, knowing about explicit instantiation and adl and you fully understand what is going on. what more would the blog post contain?
@Pris then I would start answering questions again, I sure would.
D2 and D1 there was a thread on Reddit
> C++ Templates: The Complete Guide (David Vandevoorde and Nicolai M. Josuttis) This is the book about templates as they existed before C++11.
ok, will take a look at explicit instantiation
should I be concerned about the "before C++11" part?
23:08
and I actually just bought that book
Y'all should start a version of SO where you can post bounties in bitcoin
@Blob why waste your money on books and Books when you can DO?
I'm still on level 18.
@Cinch because the people writing the books have already done it for me
@Blob isn't that the book that invented SFINAE... or at least formally presented it
I want a C++ Template Meta Programming for Idiots book
23:10
Idk I bought the C++ Programming Language and I lost it or gave it away
Because I learnt more by doing
why're you writing tutorials if you believe in that philosophy
Because they're much more lightweight and easy to pickup
Not to mention free
Books are books and heavy and long
I think I was thrown off by template struct Rob<A_f, &A::a>; This is just declaring it, with no definition, and somehow the "magic" works...
anyway, will try to understand. if anyone can explain it I promise a beer (if we ever meet in person)
Freaking templates
@vsoftco it is instantiating, not declaring
23:13
You should look at Rapptz/Sol
@FilipRoséen-refp I should then really read this damn book...
Actually, my Flexiglass library helped me to understand what instantiation of templates did
The way he programmed the library is such that it uses templates heavily
personally I don't see what the problem is.
the code doesn't do anything special.
there's only five characters that are especially relevant and it's obvious what they are.
@Puppy it's quite special imo, as before I couldn't see anything to break the "private" of a class, except the usual "template backdoor"
what do you mean, the usual template backdoor?
23:17
@Puppy I know they are obvious to who they are obvious, but to a common programmer like me they are not obvious
@Puppy specializing a template mem func.
so it gets access to your private members
A has no template member functions.
41
A: Can I access private members from outside the class without using friends?

dalleIf the class contains any template member functions you can specialize that member function to suit your needs. Even if the original developer didn't think of it. safe.h class safe { int money; public: safe() : money(1000000) { } template <typename T> void backdoo...

that's what I was talking about
it has no relevance to the posted code.
indeed, if the class has no template member functions, that one would think it's impossible to break "private"
that's why I was stunned
well, not really.
23:19
what I saw the code
you're talking about the language that lets you do all sorts of crazy shit.
breaking private is a pretty sane thing to do compared to array-to-pointer decay, for example.
or new[] and delete[].
the only method I knew was *(int*) &foo = 42
or the preprocessor.
yeah I agree....
anyways I'm off to bed now
23:21
cheers
if you're that interested you really should consider paypalling me that money and I'd be happy to explain it to you
lol
:)) ok, will think about :)))
I prefer to buy you a beer though :)
as I'm not that curious
the book i mentioned costs ~$58. worth the extra $8.
23:25
so we missed our flight
10 hours of camping at the airport ahead yay
@Cinch except the light and short ones
anyway, aside from this: can you can come up with any "sane" usage of explicit copy constructor, except when you don't want to pass/return by value? (of course, excepting Foo orig = copy;). This is related to a recent question I tried to answer stackoverflow.com/questions/29472565/… but frankly I don't really know the reason why you'd want an explicit copy ctor except the ones I mentioned.
The thought of working makes me fall asleep
Xeo
Xeo
still got 4 free days whoo
Frontend work is boring as fuck
23:28
@CatPlusPlus what's your job?
@sehe Awesome
Web crap mostly
Ugh working week barely began and I already want to skip everything until Friday evening
Here is some indie/grundge ro bands I like and seem they don't suck: youtube.com/watch?v=uY5VO52jbHg
@CatPlusPlus I love! I could sit and daydream about it all day.
Falling asleep? Yeah me too
23:39
Hi all, I'm here writing code that uses Boost ASIO, yeehaw.
But actual project stuff triggers immense disgust and hatred
Ugh I'll have to finish this anyway, let's get this shit out of the way
@vsoftco But did you read litb's answer, which doesn't require any template member functions (or templates of any sort in the target class)?
@JerryCoffin he already asked for an explanation of why it works, and he got such explanation.
@BartekBanachewicz Oh man this is one of my worst nightmares... what happens when you miss a flight?
@vsoftco you can use explicit to narrow the applicable functions during overload-resolution, and this.. well, I guess this could give you a nudge in the right direction to think of cases where an explicit copy-constructor can make sense
23:53
@Pris shit hits the fan basically
@BartekBanachewicz Do you have to buy a new ticket full price?
ouch
where "full" means "full with 12 hour notice", IOW freaking expensive
23:55
I almost missed a flight once and I had an exam right after... I basically ran from the airport straight to the metro to school and ran all the way to the exam room lol
@AlexM. sorry for being a jerk.
@BartekBanachewicz What airport are you camped out in
anyhow I'm downloading a video of today's GT3 race
a few minutes left of this 1-hour free wifi session
@Pris London Stansted
@FilipRoséen-refp Ah, missed that in scanning through the transcript.
maybe one should set up a blog, just to have a place to write about the quirks of the language
23:59
it was kinda shitty because this particular airport closed the gates way earlier than all the others we've been on
You watch MotoGP?
no, I watch Blancpain GT

« first day (1633 days earlier)      last day (3541 days later) »