« first day (1013 days earlier)      last day (3936 days later) » 

7:00 AM
His job isn't easy. You have to deal with disputes like this all the time - and you need to deal with it in a way that doesn't piss everyone off.
Same applies to all the community moderators.
 
That answer's really good, won't lie. Kudos.
 
posted on July 25, 2013 by Scott Meyers

Last Wednesday evening, I gave a talk at the Northwest C++ Users' Group entitled "The Universal Reference/Overloading Collision Conundrum." The purpose of the talk was to try out the information behind a guideline from Effective C++11/14 (the book I'm currently working on).  That guideline is "Avoid overloading on universal references." The video for that talk is now available. From my p

 
@ScottW Didnt he quit SO?
 
Yes.
 
@Feeds Nice job being late on that one.
 
7:02 AM
> even if it did prompt me to eat a half-dozen croissants today.
LOL
 
C++ doesn't have what I call period/enter programming.
 
@ScottW why would we want that?
 
Type a letter => enter => period => enter => new line
Now you're coding in C#
imba tools. :(
 
@Rapptz You can skip the enter presses and just hit the period.
 
@chris Yeah, period programming man.
@ScottW Yes.
 
7:06 AM
@ScottW at times, yes
 
@ScottW It's in the job description :P
 
0
Q: The declaration of ostream_iterator

Grzegorz WilanowskiAt the compilation (gcc Linux) of the following simple program: 1 #include <vector> 2 #include <iostream> 3 #include <iterator> 4 #include <algorithm> 5 using namespace std; 6 7 int main() 8 { 9 vector<int> numvec; 10 istream_iterator<int> is; 11 istre...

 
I almost forgot.
13 messages moved to bin
 
Where was that other exact dupe of that?
The one that he re-asked later.
 
7:08 AM
That was someone else.
 
Yeah, but I found it anyway. It does provide a useful answer for this asker.
 
0
Q: Can i work with C++ using WPF

WopsSI have a problem. I made a WPF application and I do not know Visual Basic. I read that it can make do with c + + and edit it with WPF. How can I do this?

haha.
 
and, with that figure, the best way for the employees to buy croissants, buyers distributed by income.
 
0
Q: Connect two forms in C++

AnDr3yyI have a primary form called Form1 and a secondary form called New, if I press a button on Form1 will open the form New, what I need to do is when I press a button in New to return something in Form1. For example, when I press the button Send in form New, to close that form and tell Form1 that t...

apparently its shit question hour
 
It is 3 AM.
 
7:16 AM
What's up with windows forms :(
 
WTH!
 
?
 
For some reason, I thought ostream_iterator needed a second argument.
 
0
Q: How to start programming in in c++?

E TamLet me thank any replies in advance. All answers are greatly appreciated. I want to start writing my own programs. The only computer programming class my school offers is AP Computer Science, which is based on Java. I got a 4 on the AP exam. I have been on the Honor Roll since 6th grade. Wh...

Nuke it.
 
All this time...
 
7:19 AM
@Rapptz beg your pardon?
 
@sehe chris, borgleader and I are perusing questions and closing all the bad ones.
@chris By the way, I found out what it meant by status-complete
I didn't know you could do that now.
 
@Rapptz Whaaaaaa I never noticed.
 
Or rather the bad ones seem to be reproducing at this hour
i think I VTCed 4 times in 5 min
 
I'm just as bad as these questions tonight tbh.
I've said like one logical thing that wasn't wrong.
@Rapptz I have to agree with them, GridWorld was really annoying.
 
That's it for me tonight. It's been a pleasure, talk to you all later. Fight On!
Have a catchy tune.
http://www.youtube.com/watch?v=CRWggz084bE
 
user142019
7:23 AM
@Rapptz Poor guy, wants to learn C++.
 
and the original is deleted :(
 
user142019
@ScottW Should be tagged .
 
mawning
 
user142019
(Yes, that tag exists.)
 
lol remember this?
-10
Q: Why can't I change my name to Jon Skeet?

Kendall FreyI had the best April Fools' joke idea. I've been brewing it for months. And it flopped. It involved changing my name and picture to Jon Skeet. (No, that was not the prank itself.) I did that last night, to give it time to propagate over to chat. When I checked this morning, my picture still had ...

 
user142019
7:25 AM
-10
Q: Why can't I change my name to Jon Skeet?

Kendall FreyI had the best April Fools' joke idea. I've been brewing it for months. And it flopped. It involved changing my name and picture to Jon Skeet. (No, that was not the prank itself.) I did that last night, to give it time to propagate over to chat. When I checked this morning, my picture still had ...

 
user142019
Haha, OP is the C# room guy.
 
user142019
Arg brainfreeze. I shouldn't eat my ice cream this fast.
 
@rightfold o_0 ice cream for breakfast? You truly are a king amongst men.
3
 
user142019
7:30 AM
Not for breakfast, silly.
 
user142019
I had two sandwiches with ham and butter for breakfast.
 
user142019
But I just arrived at work and I always eat ice when that happens.
 
Where do you work?
 
user142019
Time to fix this website.
 
Welp I should go to bed. 'night all
 
7:31 AM
@Borgleader good morning!
 
lawl have a good day europeans :P
 
night
 
@Borgleader G'night. I think I'll be off to bed also.
 
@Rapptz ... have fun
 
@ScottW lol deleted
 
7:56 AM
kids
how are you all?
I'm alright
there is hope
I kind of need to know what @thephd's plans are tomo
I have a feeling he just isn't going to turn up
 
I'm' easy
 
I want to answer your question with "Lots"
 
hahhahaha
We don't have a photographer
not sure if Puppy will be happy to share
even just with one other person
I definitely wouldn't post it in this room
 
user142019
What a wonderful day today is.
 
8:04 AM
@rightfold Its nice and cool here today.
 
Xeo
Way too hot here.
 
user142019
Is cool here too, due to my presence.
 
@rightfold soooo it's you
 
@rightfold oh you
 
user142019
Cool.
 
user142019
8:06 AM
There's a library that brings SBRM to Objective-C.
 
user142019
#define onExit \
    try {} @finally {} \
    __strong ext_cleanupBlock_t metamacro_concat(ext_exitBlock_, __LINE__) __attribute__((cleanup(ext_executeCleanupBlock), unused)) = ^
 
user142019
lol
 
> "Ms. Smith need to learn how to use a computer. Canada needs a government, not a trillion dollar babysitter."
 
user142019
Porn is a great way to get off. I don't understand why they ban it.
 
user142019
They all watch porn themselves.
 
8:09 AM
> "That may help put an end to prepubecent boys that think gang rape is normal. The amount of incidences of that in B.C. at parties and the case that made the news to plea to have the content removed from Facebook would probably not have been so bad with such a legislation,"
Mmm
 
@rightfold Because the need to protect children, can't you read?
 
@rightfold Banning it is ludicrous, filtering it is unethical. However, simple codes like "legally mandatory X-this-is-porn headers" might be not-so-bad. I do agree that the internet is a thoroughly unsafe environment for young personalities.
 
@sehe "for any personality"
 
user142019
@TonyTheLion From what?
 
I'd love a legally reliable way to prevent content from coming up accidentally. You know, we have "Reclame Code Commissie" too /cc @FlorisVelleman @rightfold
 
8:11 AM
@rightfold From things they shouldn't be exposed to, ie porn
 
@FlorisVelleman hahaha. You're still a kid, then :/
 
user142019
Does it harm them? Why shouldn't they be exposed to it?
 
@sehe Not really there's some really messed up stuff around
 
user142019
@sehe age gate woop woop.
 
@rightfold For the same reason you don't want 5 year olds to see bombings in Iraq on a daily basis. I shield them from the daily news on television too. Yeah, I'm a censor. And I'm proud of that.
 
8:13 AM
@sehe The question is, how to do that. Its not easy.
@sehe I think that's a good thing. :)
 
@rightfold Yup. And then curiosity kills the cat
@TonyTheLion I know. I'm prepared to "do it myself". You know, ye olde tricks: no computers outside public space, limited time, rules on social behaviour online (lukcily I'm not in the latter regions yet)
 
@sehe We don't want to kill CatPlusPlus. Let him live and fuck curiosity
@sehe ah yea
 
ITT Cat fucks curisity
 
lol, how is this news: "NVidia launches their fastest GPU yet"? Because they certainly haven't done that before
 
Cat fucks everything
 
8:15 AM
stupid headlines are stupid
 
@jalf hahahaha
 
Xeo
@rightfold Kids are way too quick to try out new things that they see somewhere and are generally very suspectible to accepting bad stuff as "good and normal".
 
user142019
We should protect our children from C++!
 
holy crap though, 12GB of RAM on it :|
 
8:16 AM
No C++ for our children
@jalf Jeeez. Link?
 
user142019
@TonyTheLion We don't have children.
 
Thursdays meh... A nasty train crash in Spain, the fishpond is still leaking and I've eaten all my chocolate croissants. Also, the misery of Ryanair EMA<>HHN looms like the fifth horseman :((
 
@rightfold Our future children
 
Xeo
@jalf But it sounds cooler if it's said like that!
 
8:17 AM
(the headline I quoted was translated from a Danish site reposting it)
 
user142019
> Implying
 
@jalf 12GB 3d card...
 
@jalf Its a monster.
 
Xeo
@jalf Some people are sure going to have fun with that.
 
Hmm. Is there anything wrong with my answer here?
0
A: Using a std::unordered_set of std::unique_ptr

seheNote that the ability to do heterogenous lookups on standard containers is subject of some proposals. http://cplusplus.github.io/LWG/lwg-proposal-status.html lists N3465 Adding heterogeneous comparison lookup to associative containers for TR2 (Rev 2) [Handle with N3573] N2882 id. N3573 Heterog...

Sitting there for ~20 minutes, and Nawaz is getting votes for saying basically the same but with (far) less background information.
 
8:22 AM
@Xeo we might, actually. In our previous stress tests, GPU RAM has been the limiting factor :)
 
user142019
@jalf Now Vim can render my code much more quickly!
 
@TonyTheLion HAVE FAITH! I will show up. I already mapped out how to get to The Underground, and how I'm going to get to Bath Spa.
... Why am I talking like Jesus.
 
@ThePhD I was gonna ask tge exact same thing
 
@ThePhD where are you travelling from again?
 
Hyde Park, London
 
8:25 AM
ITT "ThePeachThee"
 
@ThePhD oh, I thought someone mentioned you were coming from another continent
 
@sehe s/Peach/Preach :D
 
@ScottW Yeah - if 77 dead, there must be whole pile of serious, life-changing injuries to go with it :((
 
@jalf I did that part already. :D
 
oh :)
 
8:26 AM
Now I'm in the UK and coordinating to pounce on Tony.
2
Or get pounced. I dunno.
 
@sehe The first point is a scary realisation of the future.
 
@ScottW I know you are~
 
@ThePhD yeah, that was the additional associative step to make full circle, but by making it explicite, I'd break the sound joke it self
 
@ThePhD Ok, I shall BELIEVE.
 
@R.MartinhoFernandes hey you. If you fancy using line numbers with your code samples, I've worked out some css to make them happen in a way that I think is rather nice. here be a sample of what it looks like.
 
8:28 AM
@ThePhD how long are you staying there?
 
@ScottW take what?
 
@Rapptz yes. Heterogenous container operations: yay, but please let it be opt-in
 
@ThePhD lolwat?
 
@melak47 I got until Sunday Morning
 
8:28 AM
@sehe I meant for the job thing.
> Don’t post crap on the internet that you don’t want people seeing. Assume if you post it on the internet that everyone will be able to trace it back to you. I’ve seen tons of “professionals” that posted inappropriate things on even their Facebook or Twitter accounts that cost them the job.
 
@ScottW I'm not taking that.
 
@Rapptz Unless you ensure every element of a list is a tuple, you can't really do unzip. =[
 
@Magtheridon96 GET THE FUCK OFF MY SPOUSE! SCOTTW IS MINE!!! BIATCH
 
Reply-to :0
And yes. It's nice to be young enough to not have had internet in your wild days.
Oh wait. I never had any wild days.
Oh well, I couldn't facebook it anyways.
 
@TonyTheLion We can share ;.;
 
8:29 AM
@ThePhD std::pants
 
std::shared_ptr<Scott_W>
 
@thecoshman I'd quietly suggest that Robot will simply enable the feature on his code highlighting plugin.
@Magtheridon96 std::promiscuous_ptr<Scott_W>
 
@sehe yeah, jekyll provides enabling line numbers being generated, it's a simple enough ting. But it provides no CSS for styling them. They are just a number at the start of each line. Details such as the vertical bar separating them from the actual code, and wrapping code with an indent like that need to be added to the CSS. /cc @R.MartinhoFernandes
 
Anyways, what was the proposal for 'transparent' smart pointers, again? It had an appendix with mad funny alternative names
@thecoshman ah
 
Xeo
@ThePhD I heard tuples?
 
8:35 AM
> A pointer that is nearly oblivious to its pointee
o_0
 
 
Xeo
> virgin_ptr
lol
 
@thecoshman Just so you never have to write * except to 1. indirect iterators or 2. as the binary operator
 
Xeo
@sehe wat
 
@sehe implicate dereferencing?
 
8:37 AM
std::naked_ptr<Scott_W> sounds appropriate too ;)
 
@Xeo wokay, -> then for you
 
Xeo
Eh
Still makes no sense
 
Well. What is the purpose of a dumb_ptr :/
 
Xeo
Being a "descriptive" name for non-owning pointers
 
I mean, yeah of course you could still auto& myref = *my_dumb_ptr;
 
Xeo
8:39 AM
Although, really, template<class T> using dumb_ptr = T*;
 
@Xeo LOL! Presumably, you can only dereference it once.
 
@Xeo I don't need descriptive names for a non-multiprecision integer. Or a non-widecharacter string literal. Ugh. Imagine S"this is a normal literal" just because... descriptive!
 
@Xeo Uh. It wasn't me >.>
Whistles.
 
@Xeo Yup.
@ThePhD std::not_me<T> see above
 
Xeo
I simply expect any and all T* I see to be non-owning.
 
8:40 AM
@Xeo Exactly. That's quite descriptive
 
My Cache system right now is all...
Weird. Because it hands out T* from unique_ptr's, instead of using shared_ptr.
 
Oh I did that. Then I just switched to std::shared_ptr.
 
@ThePhD For something which owns the resources, I'd say that could be fine (it would control the lifetime exclusively, and users just have to trust that the resources they use are kept alive), but for a cache? Seems odd
 
@jalf The thing is, I'm having the cache "own" the resource, in a way.
When the cache dies, all the resources die.
 
@ThePhD So it's not a cache
 
8:44 AM
Oh. What do I call it then?
 
I don't know :)
 
q_q
 
but using shared_ptr inside your "cache", and giving out weak_ptrs might better match that scenario
 
I forgot what weak_ptrs are supposed to do?
Are they just T* ?
 
@ThePhD they are pointers which are automatically nulled when the object they point to is deleted
 
8:47 AM
@ThePhD Repository, Container, Warehouse, Database
 
I just realized that I never wash the spot in the middle of my upper back because I can't reach it with my hand.
That must be a very dirty spot.
 
@StackedCrooked Glad you noticed it. I was afraid to mention it.
 
@StackedCrooked That's what those brushes with long handles are for.
 
@MartinJames Ooh!
That totally makes sense.
 
@jalf Oh, so they're just like checked pointers. That's pretty nice.
 
user142019
8:49 AM
@ThePhD Warts.
 
Train crash: 'At least 77 people have been killed and more than 130 believed to be injured' :((
 
@ThePhD (afaik, in terms of implementation, an object kept alive by a shared_ptr has two ref counters. One for the object (when no shared_ptrs exist, the object is deleted), and one for the ref counter (when no shared or weak ptrs exist, the ref counter is deleted). That way a weak ptr can rely on the ref counter still being visible, so it can check whether or not the object is still alive
 
Ah.
 
@jalf Indeed
 
@jalf That sounds like a horrible mess.
 
Xeo
8:53 AM
@jalf Note that the object might not be deleted, but merely have its destructor called.
 
Welcome to the world of stdlib internals
 
Xeo
@MartinJames Eh, why?
 
@TonyTheLion I got a SIM card, but it was too big for my phone. I cut it up to make it smaller, without cutting the gold-plated SIM card part, and it doesn't seem to work with my phone. =[
 
@Xeo Multiple threads.
 
So I have to find a Micro-SIM card provider today, and make sure my Verizon Phone is unlocked.
 
8:53 AM
@Xeo true, and if you use make_shared, they're not as separate as I made it sound. But it gets the idea across :)
 
Xeo
@MartinJames shared_ptrs are thread-safe wrt their ref-count
 
user142019
@MartinJames lol threading in C++.
 
@ThePhD doesn't verizon use cdma? (Or can the phones handle both networks these days?)
 
I don't even know. =[
 
@rightfold Some devs use it, so it has to be considered. If a weak_ptr is not null does that mean that you can dereference it safely in the next line of code?
 
8:56 AM
It's a RAZRM Droid phone, and that's about the extent of my knowledge on the subject.
 
@ThePhD Buy a PAYG 3G micro-SIM at the airport and shove it in your phone. Should work fine here.
 
Well, that could be why it doesn't work. The rest of the world uses GSM networks
 
Apparently distro is Motorola, but I don't know what internal network it's supposed to use...
I wonder how I find out what it uses.
 
so unless the phone can handle both (and I have no clue about that), you're probably SOL
 
@jalf In UK, (and most Europe), we have 3G/4G CDMA.
 
8:59 AM
@MartinJames We have 3G/4G GSM. But CDMA too? I'm pretty sure the rest of Europe doesn't, but can't speak for the UK
 
@jalf AFAIK, yes.
 
Xeo
@ThePhD Hey, I'm just interested what this is about
 

« first day (1013 days earlier)      last day (3936 days later) »