« first day (278 days earlier)      last day (4668 days later) » 

5:00 PM
@MartinhoFernandes "The name _ _cplusplus is defined to the value 199711L when compiling a C++ translation unit" (§16.8/1)
 
@JerryCoffin: hmm, g++ is not conforming.
At least the one running on ideone.
 
of course not
 
And thanks btw.
 
@MartinhoFernandes I find that about as surprising as the sun rising in the morning.
@MartinhoFernandes Surely.
 
hard to conform to Standards that aren't even final yet
 
5:02 PM
@DeadMG C++ 98 has been final for a day or two now..
 
@MartinhoFernandes You need to work on your typing speed.
 
I can type fast. Just not correctly.
 
0
Q: vector<float>* causing seg fault!

anthrI have a vector of floats, defined by: std::vector<float>* MyVec; and I was filling this inside a for loop later with: MyVec->push_back(somevalue) and I was getting a seg fault. In order to try and find out what was going on I commented out the push_back line and I still saw a seg...

 
I love the fact that I got upvoted for this:
1
A: Question over the usage of rint

Cat Plus PlusIt's a call to function named rint with a single argument, which in this case is i divided by db.

 
Rob
5:05 PM
@CatPlusPlus, I'd +1 that for humor value :)
 
I'd rather keep my +1s for useful answers.
 
UPBOAT
 
Rob
Well if it makes me smile then I certainly got some use out of it.
 
People should start paying attention to what they ask for.
 
@CatPlusPlus why? you can just ask on SO and we'll get the rep
its a crutch
 
5:12 PM
Need some quick rep to hit the cap. I think I'll go look at the old C# tag.
> Why doesnt the multithreading doesnt work
Ok, I think I'll go back now.
2
 
Rob
rofl
 
Als
oh btw Stack Overflow Careers 2.0 is that paid or something?
 
It's by invite.
 
0
Q: About c++ #ifdef

David Degea#ifdef __cplusplus // C++ code #else // C code #endif The structure is like this. My question is , how to actually trigger ifdef on? I mean, in program? what code I write can turn ifdef on? For example, in this case. is that "#define __cplusplus" will let it on? Sorry for silly question.

 
Als
@MartinhoFernandes: Yup, I got one today
Why is it just by invite?
 
5:15 PM
No idea.
I got my account from the free upgrade from 1.0.
 
Als
looks like you get one, if you reach the gold badge
 
they want to guarantee a certain level of quality in their user's database
no, I got one
 
@0A0D Are you like @Feeds?
;)
 
Als
My invite says "We’re impressed by your “c++” tag answers on Stack Overflow. In recognition of your generous spirit, we’d like to invite you to create a professional profile on Stack Overflow Careers 2.0"
 
what gold badge?
 
5:17 PM
@Als Nifty.
 
Als
I thought reaching 1000 upvotes was a criteria, seems now since @hexa, got it too
 
Congrodents.
 
Als
@MartinhoFernandes: lol, thanks are in order, drinks on me for tonite in the C++ lounge
 
@MartinhoFernandes I figure I post WTF C++ questions :)
 
@Als I think you accidentally that sentence.
 
Als
5:19 PM
@MartinhoFernandes: Did not understand....I accidentally....?
 
I got the idea think there was something missing in that sentence.
 
@als I don't have a 1000 upvotes either
 
And I wrote mine with a verb missing on purpose. It's a meme.
 
@als I've read a bit and it said that is not a flat "if rep >= X"
 
Als
@MartinhoFernandes: English is not my first language, so I am afraid i might not be up to the mark on that
@hexa: Owh..let me check the mail again.
 
5:22 PM
As is "I thought reaching 1000 upvotes was a criteria, seems now since @hexa, got it too (it is not a criteria)". This is how it will be read, which doesn't make sense.
 
I suspect
it is related to who upvotes you
 
Hello all.
 
Or just random.
 
it is not
 
Hi @Etienne.
 
5:23 PM
The implication here is that you start of with a declarative phrase, then qualify the proceeding phrase that since ___ got it as well.... This implies that the second phrase counters the first.
 
i remember reading "you have to show expertise in the subject (...) a lot of smart people upvoting your answers"
'smart people'
 
Als
I thought reaching 1000 upvotes was a criteria, seems not since @hexa, got it too * since @hexa, doesn't have 1000 rep i guess
 
Like me.
 
If martinho upvotes you, its insta-invite
 
@Als Ah. So you did indeed accidentally the sentence.
 
Als
5:25 PM
I thought reaching 1000 upvotes was a criteria, seems not since @hexa, got it too since @hexa, doesn't have 1000 rep i guess
 
I accidentaly the whole thingy
 
@Als Ok, there's missing information. There's no information stating what @hexa got.
 
Als
@MartinhoFernandes: Yeah
darn this thing booted me out of the room when i tried to edit!
that is the reason it came all wrong and sentence was incomplete
If martinho upvotes you, its insta-invite
is there a truth to it? :P
 
yes
 
@CatPlusPlus I trolled this
 
5:28 PM
interesting that I got an invite so much earlier than you
maybe it has automated and manual invites
 
@Als Is it true that ... ? (also it is == it's)
 
Als
@Xaade: We need to ask @MartinhoFernandes, if he upvoted me ever lol
The stackoverflow careeers 2.0 blog says
Invitations come from your peers. We’ll give members a few invites to distribute to programmers they know and trust. Or, contribute to Stack Overflow (and our other sites), get voted up by a lot of smart people, and you may get an automatic invite.
 
ZOMG, upvote me, I want.... I don't know what I'm wanting, but I'm American and we want stuff for no reason!!!
 
Als
@hexa: Seems you must have been upvoted by someone really smart :)
@Xaade: haha
 
I don't have magical upvotes, ok?
 
5:31 PM
It's only one day of your life.
 
Als
@MartinhoFernandes: @hexa says you do!
 
I'll make witty comments...
 
Als
@Xaade: You get Outspoken badge for that
I suspect you already have that!
 
Who doesn't.
 
That's for getting starred in the chat.
That's easy.
I got that one the first day I came here.
 
5:32 PM
I get starred all the time.
 
Not this time, you won't.
 
TIME-PARADOX!!!
 
Als
Yeah i know you kids have starry nights here, but only when the grumpy man @sbi is not around
 
@sbi stars me -
when I got a good chat subtitle.
 
5:34 PM
You can set it yourself now!
 
Als
@Xaade: now that sentence looks like an accident too
 
changes room topic to Lounge<C++>: Chat topics are overrated anyway!
 
I got invited because of the :P
 
I'll be going now. I hope my replenishing magical upvotes arrive at the same time as the letters.
 
so it says in the email
 
Als
5:35 PM
@hexa: What did you do? Lol i don't think i did anything special actually.
 
@MartinhoFernandes Remember, check your doorstep.
 
@als no clue. My highest upvoted answer is like, 8 votes
maybe Jon Skeet upvoted me
no that can't be true, if he'd upvoted me I would be rich by now
 
toom ropic bechanged to Longue<C-->: We forgat the mayo
 
hey @Als
 
Als
@hexa: Perhaps lol
hey Mr. Roars! @TonyTheTiger
:P
 
5:37 PM
@hexa My highest is methinks 11 something.... for a sarcastic answer....
 
@Als Roarrrrrrrr!
 
Als
@hexa: I don't know for sure, my highest is like 47 and 27 but i think i was just lucky on those
 
Some people get upvoted 200+ times.... this I call the bandwagon effect. "I don't know why this answer is good, but everyone else thinks it so..."
 
Als
@TonyTheTiger: how have you been? long holidays and back to work?
@Xaade: I think the rep, does the trick too, An answer from someone with higher rep yields more rep than the same answer would have from someone with lower rep
 
And that crazy guy @0A0D!!!
 
5:39 PM
:)
I didn't think it was a +100 answer, but OK
 
@0A0D Well, I think that has more to do with the lack of a good answer, than the fact that you have more rep :)
 
and a gold badge
 
Als
@hexa: Perhaps!
 
@Xaade I was the first answerer and under 5 mins I guess. I watched the rep pile on
 
@0A0D Someone somewhere said to make a short answer first before others, then edit to a good answer.
Topic was about gaming rep
 
Als
5:43 PM
@Xaade: That works, because if one edits an answer quickly in first min or so it goes undetected as an edit i think
 
I think the edit grace period is 2 minutes, but I am not sure
 
Als
while some peeps who click the Q between those initial min or so see a short but correct answer and upvote it
while the detailed update follows in a quick minute, just making it an impeccable answer to beat
 
@Als because there are no other answers.
It backfired on me.
I had a short good answer, and a crappy long answer....
 
anyone else having problems with chat today?
 
Als
@Xaade: Yes, but that works, if you know the answer and can edit it quickly to showcase the detail
@0A0D: Yup, it booted me once
 
5:50 PM
@Als ok, just making sure it isnt me
 
I've been in the chat all day no problems
 
Als
Looks like it boots only bad guys :P
 
thats it, I am revenge downvoting! suck it atwood bahwahahaha
 
@Als Then why have I had no problems?
 
Als
@Poik: Because it has'nt realised yet that: 1. you are a guy, 2. You are a bad guy
:P
 
5:57 PM
Then I suppose I shouldn't inform it.
 
Got in an edit war
1
A: FF+Firebug got an error "Regular Expression too complex", IE crashed and Chrome hung

XaadeMissing [ /^[a-z](\w+\.?\w*[a-z0-9]){5,17}@[a-z](( here [ a-z0-9\-]{1,25}\.[a-z]{2,4})|([a-z0-9\-]{1,25}\.[a-z]{2,3}\.[a-z]{2,3}))$/;

I can't seem to edit fast enough!
 
Als
@Xaade: Virtual hugs..ehhh you are boding pretty much good :P
 
upboat
 
regex should die in a fire
 
Actually, I found out that if you edit your answer, it jumps to the top.... and thus me and the other identical answer got in edit war.
 
6:01 PM
in C questions, simply reply: undefined behavior
then read the question
and edit if needed
most of the time, its fine
 
Man, I wish there was an assembly tag.....
I'd answer.... "it depends"
Oh Look!!!
 
Als
@Xaade: There are three items "active" "oldest & "votes" to sort answers by
default is "active"
 
I won votes with hugs.
 
Als
@Xaade: Did you know whom you hugged? :P
lol If we could, there would be furious acitivity in SO all times, haha
SO would be like facebook for nerds!
 
For whom I have hugged upon....
I just realized there was a chick in your grav.
Then I realized, my mind casts masculinity upon all those whom gender I don't know.
 
6:05 PM
keep it in your pants
 
Als
@Xaade: That's not me though....
haha
ah there we go straight to the wise quote
 
That was my second thought....
 
Als
lol
 
That's his girlfriend.
 
@Als yea, that seems to be an unfortunate fact of life :)
 
6:06 PM
My third....
It could be HER girlfriend
 
i have another theory Xaade regarding rep
 
Als
@TonyTheTiger: Yet another, nerdy programmer in need of interaction with opp sex :P
 
mention boost in your answer on SO - instant win
 
Als
@Xaade: To clear your perceptions: I am a dude, the girl in the pic is not my gf
 
sbi
room topic changed to Lounge<C++>: Chat topics are overrated anyway!
 
6:07 PM
Even if the boost library you mention doesn't exactly solve the problem. It looks as if you know how it would.
 
Als
@0A0D: Smart pointers might help as well :P
@sbi: Hello Mr. The kids have been starry while you been away :P
 
@Xaade See what I mean.
 
sbi
@Als Actually, I just bullied the kids to bed. (Well, two of them anyway. The rest isn't here.)
 
I have starry eyes....
 
2
Q: abstract class and static methods

paragooonI have an abstract class: class A { public: bool loaded_; virtual int load() = 0; } And several derived classes : class B:public A { public: int load(); static B& instance(); } class C:public A { public: int load(); static C& instance(); } The fact is that the...

 
sbi
6:10 PM
@Xaade What does that mean?
 
@sbi Green eyes, but for stars.... stars are rep in chat.
 
Als
Oh @sbi, might know, What precisely gets one an invite for stackoverflow careers 2.0
 
The talent is getting a good star for a message that doesn't quite explain what it's talking about.... Then it becomes like TVTropes.... I end up reading a whole backlog to figure out why it's so funny.
 
sbi
@Als For me it was @TonyTheTiger.
 
@sbi Other than personal invite.
 
sbi
6:13 PM
@Xaade In my FF, those stars are red or yellow.
 
@Xaade in that case, it shouldnt be shown on the side, only to the people viewing the transcript
 
sbi
@Xaade I wouldn't know.
 
Here is a question which proves my boost point
 
sbi
@Xaade Yeah, I know that, too. I hate it.
 
Als
@sbi: I got one from do-not-reply@stackoverflow.com so wondering, what gives one that
 
6:14 PM
@sbi green eyes is euphemism for envy.
 
0
Q: Format a String in C++ without having to declare a preallocated fixed size char array?

Jarrod RobersonIs there a common function available to be able to do sprintf type String formatting without having to supply a fixed size buffer, that returns a string class instance? I know about stringstream it doesn't do what I want. Maybe some function that does what sprintf does using a stringstream and p...

top answer suggests boost
 
sbi
@Xaade Ah. Apparently I'm missing out on a lot of slang.
 
Anyone ever notice that google search has a better spell checker than anything else. If I'm even remotely close, it searches for the word I meant to spell.
 
@Xaade it's the drunk app google added
fixes your spelling
 
sbi
@Xaade If you make a witty comment, please make it self-contained, so we don't have to read hours of chat log in order to understand what's so great about it once it got starred.
5
 
6:16 PM
Well, it fixes your spelling by finding the closest commonly searched item. Which is superior to other spell checks because it accounts for use, and it has a broad test range for use.
 
sbi
Why did I know that would be starred? :-x
Oh. I hadn't know that.
 
oh hi @sbi
 
sbi
@DeadMG I've been pinned.
Being pinned is different from being pissed. Somewhat, anyway.
 
what exactly is being pinned then?
 
sbi
Oh, and hi, @Dead. Sorry for being so slow. I'm flattered.
 
6:17 PM
Well I mean, if I wanted to spell euphemism, but I spelled it euthanism, most spell checks think I mean euthanize, which is similar if you think stupid people deserve to die.
 
sbi
@DeadMG That.
 
I see
I'm not completely sure how that's only somewhat different from being pissed :P
 
Oh comon... you pinned a question about what is pinned. Pin the answer....
 
Als
It seems everyone who uses the word pin gets starred!
 
sbi
@DeadMG There's only two letters of difference. That's not much.
 
6:18 PM
fair play
 
Pinnning is not starring. Not only do you not have context, you don't have context for something that will stay there a LONG TIME.
 
pins can be unpinned
 
3 mins ago, by sbi
@Xaade If you make a witty comment, please make it self-contained, so we don't have to read hours of chat log in order to understand what's so great about it once it got starred.
 
Als
@sbi: You bring along a flood of stars!
 
@Als lol :P surely yes :)
wow, that's too many stars for one page, really
 
6:20 PM
how big is the full boost library compiled for x86 linux? anyone have a guess?
 
who's wasting stars?
 
Another useless star.... Don't star links.... I can't read links.
 
my lexer, it is close to complete
 
sbi
@Als No, I don't. (In fact, I'm stemming against it.)
 
Als
someone is trying to test it or break it!
And the list can't keep up to it, it is behaving abnormally now, darn someone broke it!
 
6:21 PM
hahah
didn't take long now, did it
 
wow
 
I wrote a bot that randomly stars and unstars....
 
sbi
@Als Works fine for me.
 
@Xaade can I haz the codez
 
Als
@sbi: It does now, it was going bonkers just a minute ago.
 
sbi
6:22 PM
@Xaade No, you didn't. Unstarring wasn't randomly, but methodological, and it wasn't done by you either.
 
No seriously.... someone should make a chatroom, have lines of text that look like an image, bot a starrer unstarrer, and make it animate.
 
sbi
@Als A chat should be allowed to go bonkers once in a while.
 
@sbi how do you know?
 
Als
@sbi: Can you see Who did it?
 
sbi
@TonyTheTiger You have three guesses.
 
6:23 PM
because @sbi did it?
 
Als
@sbi @sbi @sbi
my 3 guesses
 
sbi
@Als I didn't say anything about who starred it. I did say I know who did not unstar it, though. What conclusion do you draw from that?
 
Als
@sbi: Too complicated! its 12.00 am here! My mind can't work
:)
 
sbi
@Als How can "@Name" ever be the correct answer to "Can you do X?"-style questions?
 
Als
geez, are you getting grumpy? :P
 
sbi
6:26 PM
@Als Am I getting grumpy? Is the sky getting blue? the night dark? the ocean deep?
2
 
Als
@sbi: or me sober...
oh besides that My original Q never got answered, so while @TonyTheTiger is around
 
sbi
7 mins ago, by sbi
@Als No, I don't. (In fact, I'm stemming against it.)
 
Als
@TonyTheTiger: What gets one the stackoverflow career invite 2.0 except personal invites or paying for it?
 
sbi
@Als ISTR the SO team saying (in a blog?) they hand out invites by criteria I all but forgot about.
 
Als
@sbi: Oh geez, I got the point, You didn't, now please quit stalling, the room is allowed to go bonkers once in a while and so are the chatters, i hope :)
 
6:28 PM
@sbi Global Warming.... ocean's getting deep dude.
More clouds, night gets dark
 
sbi
@Als Someone got a little bit excited and jacked off to starring all messages. I went after them and cleaned up the mess^Wstars.
2
 
Als
@sbi: Can you as moderator of the room not see who did it?
 
moderated
Wasn't me.... I don't have magical stars like @MartinhoFernandes
 
Als
I am in here after long long time, so not me either
 
sbi
@Als Rooms have no mods, though the chat has a few. Rooms only have owners. They have rather limited privileges. In particular, I'm not aware of any piece of history I see that non-owners don't.
 
6:31 PM
@Als I returned after....
 
Als
@sbi: Right!
@Xaade: You liar! you never leave! You are always here! trolling the room
:P
 
don't you have a daily max star amount anyways?
 
@Als I mean, you should say "I returned after a long long time"
 
like comments and votes
it would prevent abuse if you did
 
Als
@Xaade: Oh language lawyer!
 
6:33 PM
I am in here after a long long time is technically correct, but since the tense of am is present, it is confusing. Reads as, "I presently here past a time ago."
 
Guess @Als accidentally a sentence again.
;)
 
Als
@MartinhoFernandes: That is a valid statement
 
@MartinhoFernandes Not really.... it's more semantics than syntatics.
 
@Xaade It's syntax.
Or syntactics.
 
Als
@MartinhoFernandes: Show me the quote from the standard, that it is undefined behavior
haha
 
6:35 PM
I exist before the future.
 
S/2011 (134340) 1 (also known as S/2011 P 1 or P4) is a small natural satellite of Pluto. It was discovered by the Hubble Space Telescope's Pluto Companion Search Team on June 28, 2011, using the Wide Field Camera 3, during an attempt to find any rings that Pluto might possess. Further observations were made on July 3 and July 18, 2011 and it was verified as a new moon on July 20, 2011. It was later identified in archival Hubble images from February 15, 2006 and June 25, 2010. P4's brightness is only about 10% of that of Nix, and it was found because the discovery team took 8-minute expos...
Just heard of this.
 
@MartinhoFernandes The non planet pluto has a moon.
 
@Als, remember when I mentioned today was the 2000th+ anniversary of some fire?
 
more than one
@Xaade 4 moons
 
Today is also the 42nd anniversary of the first moon walk!
 
Als
6:37 PM
@MartinhoFernandes: Aha i see
 
@0A0D A non-planet can't have a moon.... orbiting debris it is.
 
Als
@MartinhoFernandes: Since you brought it up let me just say,
 
Pluto has it's own meteor belt.
 
@Xaade It's a dwarf planet
 
Als
Neil Amstrong dude might be the first to do the moon walk....but none walked it better than Micheal Jackson
:)
 
6:38 PM
@0A0D I object.... it's called a little planet.... not a dwarf.
 
it's a dwarf planet
 
@Xaade Not according to wikipedia
ok, missed that one :) little people, little planet
 
They don't like to be called dwarfs....
 
lol
 
Pluto never complained.
 
6:39 PM
I don't think Pluto likes anything
 
Pluto whined all the time.... Mickey got fed up and removed his planet title.
 
Als
it is too small to like anything
 
Pluto is bigger than you.
 
Als
its as if asking if bacteria likes something...hell no and even if it does we dont really care do we
 
Save the bacteria.... stop the genocide.
 
6:40 PM
but I am significantly smarter than Pluto
I'll bet you that my brain mass is much higher than the brain mass of Pluto
 
hippies profile animals.... they only save the cute ones.
 
and I have a higher computational throughput
more gigaflops
 
Als
@Xaade: Or they hate the plants more!
 
 
Not if you count the computational throughput of its quantum states.
 
6:42 PM
those can't be usefully harnessed, so I'm not going to
 
BY YOU!
So I'm beginning to doubt if you're significantly smarter than pluto which is capable of harnessing its own quantum states.... to exist.
 
Als
ah well anyways folks
I am going to call it a night
have a good day
 
Good night.
 
It's day here....
 
night
 
6:43 PM
Suddenly there are other timezones than the 4 in America.... what do you do, just make it all up.
 
yes
I make up my timezone
it doesn't really exist
I'm really in Massachussets
 
Just read this article, it's quite cool cpptruths.blogspot.com/2011/07/…
 
you mean there is life outside of america?
 
Apparently they found life outside Earth, so there must be life outside America.
 
6:45 PM
not according to Beck
 
Beck says the founding fathers invented Europe so they'd have something to keep the anti-federalists busy competing with.
You need the fed.... it makes Europe weak.
 
the most hilarious thing about the US is how they split off from Europe to find a better life
two hundred years later, the joke's on them as Europeans have much better lives
 
@DeadMG my house sure is bigger than a typical European
and cheaper
 
I suppose France having revolts and Greece not existing is better.
 
your healthcare bill is much bigger too
and so is your contingent of Bible-thumpers
 
6:48 PM
Oh you mean, Britain's have better lives....
 
how about murder rates?
 
$4500 per year isnt bad
 
Greece still exists and France is perfectly stable
 
that's my family insurance including dental, vision, medical
 
Murder rates are not-relevant when you have a massive sex-slave trade a block down the road from germany.
 
6:49 PM
Oh boy, this is not going to end well.
 
the difference is that murder rates are national, they're all the time for everyone
sex-slave trade, sure, that happens, but it's hardly a Europe-specific problem
I doubt that the US never sees sex slaves either
 
I think we need to realize that every place has pros and cons, and stop thinking we're superior....
 
france has a higher crime rate than the US
 
And we have... um... shitty roads. Yeah.
 
user457812
@Xaade No, we (whoever we is) are superior and we should bomb the hell out of everyone else to show them.
 
6:50 PM
My statistic is bigger than yours!
 
Why do I have to agree with everything my country does in order to have a debate about why no country is superior.
 
@Xaade Because that's how Europe treats the US
guess you could also say Britain has a higher crime rate than the US and South Africa
 
I've matured enough to realize that just because I don't like what China as a country does, that in fact its people feel partially the same way.
 
@Xaade my only problem with China is that the tariffs for US imports are higher than what we charge them
 
@Xaade Chinese don't like what China does, because you don't?
 
6:54 PM
I've matured enough to realize that just because I don't like what China as a country does, doesn't mean that in fact its people could feel partially the same way.
 
0
Q: Listing specific subsets using STL.

RagnarSay I have a range of number, say {2,3,4,5}, stored in this order in a std::vector v, and that I want to list all possibles subsets which end with 5 using STL... that is : 2 3 4 5 2 3 5 2 4 5 3 4 5 2 5 3 5 4 5 5 ( I hope i don't forget any:) ) I tried using while(next_permutation(v.begin(),v....

 

« first day (278 days earlier)      last day (4668 days later) »