« first day (332 days earlier)      last day (4615 days later) » 

7:00 PM
 
For my Populist badge I had to convince people to upvote the accepted answer :)
@TonyTheLion Ugh, arthropods.
 
Als
I will have to convince peeps to vote me to 22 first :P
 
Als
eww thats dirty....Alien
 
practicing many problems using STL then learning boost is ok ? , both paralleley is also ok ?
OMG too much to learn and practice in c++
 
7:05 PM
@MrAnubis Yes and no -- both are just libraries, so it's theoretically fine to study both at once. Realistically, either one is a lot to learn on its own, so you may want to stick to one at a time to keep your brain from exploding.
 
Also Boost is very much an extension of STL and of the STL-style of writing C++
 
@TonyTheLion It's a common WTF in Windows, but with a slightly different text (because the standard message text for code 0 is that the operation succeeded).
 
So I'd consider STL a prerequisite for learning Boost.
 
Thanks for advices , I'll do what you all said
 
sbi
7:08 PM
@Als Actually, I used to teach C++. I haven't done it for two years now. (Interestingly, I got an offer just yesterday to give a lecture plus the accompanying lab work - the exact same I did until summer two years ago. I declined, though. I don't feel like doing the additional work right now.)
 
Als
@sbi: What can I say, You the man :)
 
@AlfPSteinbach oh I see
@sbi Evening! How goes it?
 
Als
ah okay almost 1.00am Need to drag my arse to bed
 
sbi
@Als The man? Which one would that be? Stan the Man? :)
 
You play baseball?
 
Als
7:11 PM
@sbi: Like those all men, superman, spiderman, batman, men who wear their undies over their pants
lol
@RMartinhoFernandes: Me?
 
You don't know who is Stan the Man?
 
sbi
@TonyTheLion <pavloving> Well I’m going/Baby slowly slowly goin'/And we both know that its gonna be alright </pavloving>
 
Als
@RMartinhoFernandes: No I don't , Am I supposed to know?
I don't play baseball either
 
I think if astronauts had spacesuits like this they would be more popular?
 
IntelliSense: pointer to incomplete class type is not allowed
 
7:13 PM
 
Doesn't work
 
sbi
@RMartinhoFernandes There's a few, actually: en.wikipedia.org/wiki/Stan_the_Man_%28disambiguation%29
 
@LewsTherin heh
 
Yeah :(
 
sbi
@RMartinhoFernandes I wouldn't dream of doing so.
 
7:14 PM
And I did class World; at the top
 
@sbi haha
 
Als
@LewsTherin: Do you expect us to Guess what code you wrote?
 
Als
code link!
 
sbi
@Als Good night, @Als!
 
7:15 PM
@Als ok sorry :(
 
Als
@sbi: i will wait to make an rule here
 
@AlfPSteinbach Never heard of that.
 
sbi
@Als ??
 
But seems exteeeeeeeeeeeeensive.
 
Als
@LewsTherin: Any time you ask us something related to code, you post the code, or we won't answer.
@sbi: There done ^^^^^^^
 
7:16 PM
@RMartinhoFernandes berserkers? or spacesuits? the original US spacesuits were based on a design by Heinlein.
 
No, that Berserker saga.
 
@RMartinhoFernandes oh it's famous. especially Saberhagen's invention of goodlife, the quisling humans who assist berserkers.
 
@Als "...post the code (or a link to ideone, etc.), or we won't answer..."
 
"goodlife" looks like a Newspeak word.
 
Als
7:17 PM
@JerryCoffin: Err..Yeah actually @LewsTherin, uses Ideone, so he knowsss
darn my s key seems to have mind of its own
ssometimess
okay Rule done with off i go to ZzZz
 
@Als Mine doe too, but it jut refue to work at all!
@Als G'night
 
Als
:)
Good day @All
 
Good night.
 
StackOverflow says "We prefer questions that can be answered, not just discussed." where do I go to discuss?
 
We sometimes discuss stuff in here.
Other times we goof around.
 
7:28 PM
http://ideone.com/zho3U
http://ideone.com/DQEbw
 
can we change file stream buffer to large size?
 
@Als there's the link..incomplete type :S
 
I saw a question once of a guy who made a std::map<volatile int*, somerandomobject> which (obviously) didn't work like he wanted. I was wondering, what mapping-type data structure would be recommended for fast-as-possible lookup with volatile keys?
 
suppose that i have std::ifstream xc("test"); , how do i change xc's buffer?
 
@MooingDuck Why volatile keys?
Keys that are changed externally is not a good idea, is it?
 
7:30 PM
@R. Martinho: I dunno. I assume he had a reason.
no, they are definitely a bad idea for a typical tree
 
Actually, keys that can change at all are not a good idea.
 
right, so this requires an outside-of-the-box oddball answer
 
suppose that i have std::ifstream xc("test"); , how do i change xc's buffer?
 
So, if the keys don't need to (cannot) change, there's no need to make them volatile.
I don't know any other way of answering that. You can't have a mapping with keys that can change.
 
@LewsTherin You can't do things with an object of an incomplete class like World is here.
 
7:35 PM
@R. Martinho: In hindsight, I cannot think of any use case for volatile keys. Basically it's the same as a map that frequently updates (remove/re-inserts) keys, probably more than lookup. Like searching based on last known location or something. Either way, a std::map is probably not the best answer.
 
@AlfPSteinbach so what do I do? Even initializing the pointer after World object leaves the constructor doesn't work
 
@LewsTherin what to do depends on what you want to achieve. but generally, when you have 2 very tightly coupled classes, put them in the same module. no matter what you do you need to reorder definitions so that anything that is referred to, has already been declared.
 
There's no "one class per file" rule in C++.
 
so it is ok if I put then in one file then? That sounds like it might work then
 
wait, I could have sworn Alf P Steinbach's post was different the first time I read it.
 
7:38 PM
@JerryCoffin : C++ Standard library by josuttis is sufficient to get intermediate knowledge in STL without much practice , i am thinking to buy it now ?
 
@MooingDuck Read the newbie hints (linked on the right side).
You can edit messages in this chat.
 
@RMartinhoFernandes BEST CHAT EVER
 
Tell us about it. :)
 
it works now..wow
Unfortunately can't think of any other way
 
7:53 PM
@MrAnubis Yes, I'd recommend it (quite highly). Another that's quite good is STL Tutorial and Reference Guide by Musser, Derge, and Saini (but it's devoted to the containers, algorithms and iterators part of the library, not the whole thing like Josuttis covers).
 
2
Q: Type of lvalue.bitfield when the underlying bitfield type is not int in C

Pascal CuoqSomeone drew my attention to the following program: #include <stdio.h> struct X50 { long long int z:50; } s50 = { 2 }; struct X10 { long long int z:10; } s10 = { 2 }; int main() { printf("%zu %zu %zu\n",sizeof(long long int),sizeof(s10.z+1),sizeof(s50.z+1)); } The type of expressi...

although it's C, this is an interesting question I think :P
 
@TonyTheLion is his name really Pascal Cock?
 
@MooingDuck You come here once, you never leave.
@CodeMonkey how am I supposed to know? It's a French name, so it might be
 
@TonyTheLion You're in Europe. Don't all Europeans know everything?
 
Yes. But we don't share everything with ignorant Americans :P
 
8:02 PM
0
Q: clang not working properly for C++ Exceptions

Vineel Kumar Reddystruct ZeroError{ int err; ZeroError(int e){err = e;} }; int div(int a,int b) { if (b == 0)throw int(10); return a+b; } int main() { try{ int x = div(10,0); cout<< x; } catch(int z){ cout<<z; } } even though exception is c...

@RMartinhoFernandes Hahah epic :)
 
im disappointed that this doesn't work:
#define NOWARNINGS(X) _Pragma("warnings(......)") #X
I wanted to use it as #include NOWARNINGS(foo/bar.h)
it says #include requires "file" or <file>
but I gave it a "file"
 
the spec says that _Pragma(....) is processed and then the tokens _Pragma(...) are removed. so that should leave only the string literal at the end -.-
haha with clang it works
i will send a gcc and icc PR
 
8:18 PM
@JohannesSchaublitb are you still a student?
 
@ManofOneWay no
 
@JohannesSchaublitb nice
 
indeed. now im teh bachelor xD
 
=)
no PhD?
 
8:21 PM
I don't know if I would have the energy to study for 4 more years
 
@JohannesSchaublitb could easily have a PhD in "The C++ Standard" :)
 
:( wanna have something more real
oh I mean I just want to make Master. no further than that
 
what PhD do you want?
in CompSci?
 
don't wanna go higher. im not that kind of guy either
 
8:22 PM
ah okey, I'm one year from master now
 
I can now count the remaining courses on two hands! ;)
Why not study for masters here in sweden?
 
@JohannesSchaublitb Master Of Snippets? ;)
 
8:31 PM
@FredOverflow are you still a student?
 
@ManofOneWay Nope, graduated last year.
 
@FredOverflow Nice, masters?
 
Diploma
 
hmm, what is that?
 
That's what we had before the Bachelor/Master system was introduced in Germany.
 
8:33 PM
ah okey
What master thesis did you work on?
or equivalent
 
C++'s support for "value types" (as opposed to "object types"). It was exhausting.
 
neat
is this related to "entity types" ?
 
never heard of them
 
i believe entity types are in constrast to value types. like, the value types are the flat things you can copy around, and the entity types are the heavy things one cannot copy and that have an identity.
or something like that
 
@JohannesSchaublitb Ah, that's how Kevlin Henney distinguishes them, right?
@JohannesSchaublitb One of the fundamental properties of values is that you can not copy them at all :) Sounds totally stupid from a C++ perspective.
 
8:40 PM
yeah I remember it has something to do with Kevlin Henney
yeah the value is immaterial. copying would be creating a new identity I think
 
@FredOverflow Not entirely. The canonical example would be streams. No assignment supported -- once you create one, you always pass around a reference to the original object rather than copying it.
 
but since a value has no identity there is nothing to copy
that's one view at least. but it seems @JerryCoffin has a different view :)
well in C++ one copies the object. the value contained therein is just represented
and will happen to be the same
 
@JohannesSchaublitb The fact that C++ treats the terms "object" and "value" so... differently didn't help me much :)
 
the object will have an identity. even though when one ignores the identity. i.e "int a = 0; int b = a;" two identities - one copy was made. but no value was copied and cannot be copied - zero is immaterial
 
@JohannesSchaublitb Just to clarify, streams are an example of entity objects, not of value objects. Quite a few reference-counted smart pointers (and such) are basically an attempt at creating an entity object as the "back end" with a "value-like" facade, so you can treat it like a value while it retains its identity characteristic.
 
8:46 PM
yeah C++ has one definition where it has "value" in italic font, but it then subsequently violates that definition
when it uses "value" as in "the value of the expression is ... it is an lvalue"
 
@JohannesSchaublitb Tell a Java guy that an int variable is an object and he will behead you ;)
 
@JerryCoffin What exactly is a "value object"?
 
@FredOverflow That's been discussed to death several times over. About the best answer I can give is to paraphrase Scott Meyer's: it's something that "acts as the ints do."
 
@JerryCoffin By "the ints", do you mean "the int values" or "the int objects"? :)
 
8:49 PM
@FredOverflow Yes!
 
I think a value object is something that is "CopyConstructible"
 
@Kerrek SB: I mean if I get a char* from an external ABI, want to replace 2 chars in the middle with 3 other chars, and pass it back. std::vector can do that, but makes a full copy to encapsulate, which is slower than doing it myself.
 
that is, if T t(u) for u being a T yields t == u
 
@JerryCoffin So... both?
 
8:53 PM
lulz
 
@FredOverflow The usual intent is closer to int objects, but (depending on the situation) people often settle for something...less.
 
i wanna live at the top
 
it looks like something out of the silly movie with italian muscle man actor and american "the net" actress
 
@JohannesSchaublitb May I suggest a stack then? ;-)
 
8:54 PM
oops, I typo'd and just learned that there's a UTF18 standard. Never knew that
 
Then I can poppen the stack
 
@MooingDuck There really isn't.
 
@R. Martinho: Even if it's a joke, it was released by a standards body in a more or less normal way, and implemented.
I don't know what counts as official anymore :(
 
8:57 PM
April Fool's RFCs don't.
 
look at the RFC number. 4042
not found -> answer of life
 
An RFC is just an RFC. Anyone can write an RFC. It's not a standard.
Very few RFCs have become standards.
When an RFC becomes a standard, it changes name to STD.
 
therefor it is not an RFC. the number is in itself a documentation that it is not one.
 
@AlfPSteinbach never knew that
 
@AlfPSteinbach ohh
 
8:59 PM
@AlfPSteinbach Many are de facto standards, though.
 
@RMartinhoFernandes Quite true -- many also continue to be referred to by their RFC numbers long after they're accepted as standards.
 
@JohannesSchaublitb poppen =) is that german?
poppen die stacke
 
@ManofOneWay it's a silly pun
lol
 
@TonyTheLion Zeit für ein paar wieder Deutsch?
 
@RMartinhoFernandes For anybody who cares, here's a list of (all ~71) currently accepted standards (along with proposed standards, etc.)
 
sbi
9:10 PM
@ManofOneWay Not when @Johannes is here. He's taking every opportunity to slip in dirty words as it is. You'd better not provoke him by using his native language. :)
SHAREPOINT? Is NOTHING holy? http://sharepoint.stackexchange.com/
 
@sbi lol
 
12
Q: Does inheriting constructors work with templates in C++0x?

Joseph GarvinIn C++0x, you can use the using keyword to inherit constructors, like so: class B { B(int) {} }; class A : public B { using B::B; }; Which will implicitly declare an A(int) constructor. Does this work with templates? class B { B(int) {} }; template<class T> class A : public T { using ...

 
@ManofOneWay Wuerde ich gerne machen, aber @sbi findet es kein gutes idee. :P
 
sbi
@TonyTheLion You will not even have noticed him doing so, but as a German, the first thing greeting me when I looked at the chat tab just before I wrote that message was @Johannes using the word "poppen". Sometimes I think the longer I know him the less he talks of C++, and the more of sex. :)
 
not true :(
 
9:23 PM
@TonyTheLion Something about @sbi being a good IDE. That's what I understood.
 
@sbi Is he trying to catch up with my no of sex mentions?
 
sbi
Anyway, I will have something to add on a synonym of that word shortly. Stay tuned, I just need to polish it.
 
just remembered
2
Q: What does "stackenblochen" mean?

Johannes Schaub - litbIn a chat room, someone sent a link to this youtube video: http://www.youtube.com/watch?v=zqAdxN1IWQQ . In the video they use the word Stackenblochen I have never heard the word, even though I believe I know German reasonably well. Can anyone please clarify? Apparently, some Germans are ash...

 
@RMartinhoFernandes LOL, not quite, I said, I would like to speak German, but @sbi doesn't think that's good idea
 
btw, is poopenshaft a legit german word?
 
9:24 PM
-------------- rather
 
sbi
@ManofOneWay Not of any dialects I ever heard.
 
oh I misread -.-
 
sbi
@JohannesSchaublitb See what I mean? Blargh!
 
9:25 PM
Was ist poppensaft dann?
 
@TonyTheLion etwas Gemeines
 
@ManofOneWay that's very ambiguous, please be specific
 
@ManofOneWay not true
 
just anal cavity
nothing that special
 
I don't know what poppensaft is, I'm just guessing it's something nasty
so it's poppen not poopen?
 
9:27 PM
yea, afaik
 
or is poppen the verb?
 
"to popp"
 
"saft" is "juice"
 
9:28 PM
sure, but popp
could that also be a verb?
poppen?
 
the verb is "poppen" I believe
it means to take some item from the top of a stack
 
I doubt @sbi would object against that. It must have some other meaning.
 
dunno. im off. have fun
 
sbi
@RMartinhoFernandes "Poppen" is a (somewhat less obscene) synonym to "ficken", which means "to fuck".
 
@sbi I thought it was the ass =(
is kügelsack a legit german word?
 
sbi
9:32 PM
@ManofOneWay Definitely not. (Now, if you said Kugelsack, I wouldn't be as definite, because that would have a meaning, although I've never seen it used that way.)
 
oh s***, my definition was wrong then
damnit
 
Ah so I misspelled, I thought it was spelled with an ü
now lastly, a word i've been wondering about
schpunken
is that a real german word?
 
sbi
@ManofOneWay I couldn't even think of a real word that this could (unsuccessfully) be trying to resemble.
Where do you get all those from?
 
sbi
@ManofOneWay Ugh. I wish I hadn't asked.
 
9:40 PM
Maybe "spucken", which is to spit
 
@kbok posted this before, it's just great, clientsfromhell.net/post/7274537009/…
I wonder if it's for real
 
> "I just want the website to be small and functional, with some character… Let me put this in terms you’ll understand: I don’t need the Imperial Star Destroyer. I just need a Millennium Falcon."
 
sbi
Look, it's like I told you -- Sharepoint is the future of humanity. Hey, I didn't say it was a *good* future.
 
I know you're C++ people, but have you read Object-oriented Programming with ANSI-C - Axel-Tobias Schreiner?
 
10:12 PM
Hey guys
Do you think that evil exists?
 
@KianMayne There's the Devil :P
 
@TonyTheLion Come on...philosophical question here
 
If there is a Devil..then there is a God
if so I'm screwed
 
@ManofOneWay Actually whitehouse.com was a pr0n site, for a while. Many years ago.
 
@AlfPSteinbach lol really?
/me is enjoying a glass of Jack Daniels :)
 
10:17 PM
yes
but it's removed from wayback engine, so i can't show you, sorry
 
@AlfPSteinbach Funny =) but what does that have to do with anything? =)
 
@ManofOneWay your question. if you don't remember it, use the little reference up-arrow on each message
 
10:27 PM
Didn't mean it in a bad way. =) Are you talking about the hotmale-site?
 
@ManofOneWay yes
 
This is actually ridiculous. I can't really say much because of google but someone I know is being retarded
 
Well, confusing hotmail with hotmale is not as forgivable as typing whitehouse.com hoping it's the actual whitehouse =)
 
sbi
0
A: Is the language "BrainF_ck" offensive?

sbiAccording to the web site of the German news magazine Der Spiegel, a German schnapps manufacturer just convinced the German federal patent court to allow them to register the trademark "Ficken" ("fuck"), which the patent office had denied them earlier. The court found that, while using the term a...

I will now go to bed, no matter the consequences of that answer.
 
10:32 PM
Ugh. Today is not a good day.
1) We have to learn Java for comp. sci. Both the language and Eclipse IDE are a pain to use. (Syntax highlighting is spread over three different windows!)
2) Our school computers block any websites not on a whitelist, even when we take them home. I tried booting a Linux LiveUSB, but they enabled MacBook firmware password-protection.
 
u can't really learn stuff on a blocked computer.
2
 
3) I'm catching a cold.
 
@Maxpm what's wrong with mac osx?
 
sbi
Darn. Now I see that, in an answer that deals with the fact that using "fuck" is forbidden, I used the very word in the very first sentence. Well, did I mention I have a hard time filtering my thoughts? Anyway, that will be "repaired" soon.
 
@Maxpm with a net?
 
10:36 PM
@ManofOneWay It's my least favorite operating system, but that's not the point. I'm trying to circumvent their ridiculous content blocking.
@TonyTheLion Yes.
 
@Maxpm Sorry to hear about the whitelist, but mac osx is the best operating system out there.
Time to sleep , good night
 
@sbi I'm upvoting you - people should just grow up and learn to be adults - it's the name of a language, if people want to get offended they can but they shouldn't go whining and flagging
 
@ManofOneWay Screw OS X. AmigaOS for life.
 
10:43 PM
@KianMayne I don't really get why people find words offensive at all.
 
sbi
Ugh. That guy removed all my emphasizing. That was precioussss to me! Should I rollback his changes?
 
@sbi Yes.
 
@sbi Yes. Say you found his editing offensive.
 
@sbi YES, cause doing that is rude
 
@Maxpm Woo, we're all realistic people here
 
10:45 PM
@sbi check my comment
lol
 
sbi
Wow. That is a very uniform POV you have there. But I wasn't asking because I'm offended by his change. I was asking because it might be that the answer gained in readability by removing all the bold italic. Or it might not.
@TonyTheLion Your shift key seems broken. :)
Well, I won't change it while he's still defending his edit. And I do need to go to bed anyway.
Good night everybody!
 
Could someone please explain the notion that books are necessary to learn a programming language? I'd argue they're detrimental. They become out-of-date quickly, especially in this field, and they can be quite expensive. Additionally, it's more difficult to follow references. Compare them with web-based resources, where you can just click the name of a function to get full, up-to-date documentation.
 
@Maxpm in learning C++ specifically, it's very handy to be able to read a book that explains the basics of the language in a logical order, which you can follow
 
Can't even get onto Meta -.-
 
on the internet, there's no tutorial or resource that compares to a book, for C++
 
10:54 PM
@TonyTheLion I managed to learn what I know without using a book, except for my trite school assignments.
 
@TonyTheLion the FAQ used to link to my tutorial. it's currently & probably forever off-line. the best you have now is probably the tutorial at cplusplus.com.
 
11:07 PM
ah I see
 
11:19 PM
lulz
 
11:41 PM
293
Q: Why is this program erroneously rejected by three C++ compilers?

James McNellisI am having some difficulty compiling a C++ program that I've written. This program is very simple and, to the best of my knowledge, conforms to all the rules set forth in the C++ Standard. I've read over the entirety of ISO/IEC 14882:2003 twice to be sure. The program is as follows: Here i...

 

« first day (332 days earlier)      last day (4615 days later) »