« first day (80 days earlier)      last day (4867 days later) » 

12:58 AM
@JamesMcNellis litb was trolling, btw :P
sbi figured it out
 
1:17 AM
The parts of the stdlib derived from the STL have evolved over time, mostly so come C++0x. But the STL was distinct from the template parts of the stdlib right from the very start, in the same way that a project B newly ported from project A is distinct, despite sharing the same initial codebase.
 
1:28 AM
@TomalakGeretkal I know. Hence my quip about willingness to broaden my definition.
 
:)
I have come to the conclusion that I may be swayed by calling it the Standard Templatepartsofthe Library
 
 
4 hours later…
5:09 AM
hi
 
 
5 hours later…
9:45 AM
@Tomalak: then you'd need a real reason to commonly distinguish those from, say, rand(); and figuring out why not to use the more accurate "stdlib templates" or "templates in the stdlib"
 
10:26 AM
anybody used the Oracle Call API around here?
 
10:59 AM
@FredNurk I'm trying dammit!
 
11:32 AM
@tina good morning
 
11:52 AM
is programmers.se really worth following? I've never found much of interest there
@sbi: separate paragraphs instead of line breaks (two trailing spaces) under your bulleted items would be easier to read
you just have to indent the paragraphs 4 spaces, I think, so they're still under the li
 
sbi
@FredNurk I haven't found much either, but I do look for any interesting question to come by. Once in a while I hit one.
@FredNurk Mhmm. I somewhat disagree. :)
 
yup, that seems to work in the editor preview:
1. one
1. two

    paragraph under two

    another paragraph under two

paragraph after list
you dislike putting paragraph content into paragraphs?
I can understand not liking the design of a site, but resisting by refusing to use paragraphs doesn't seem productive; I had thought you just used line breaks because you didn't know how to write paragraphs
 
sbi
@FredNurk I dislike vertical space between stuff that belongs together. Therefore I often use a simple newline instead of a new paragraph.
 
then why not eliminate the vertical space altogether? don't use a line break either
isn't your post emphasizing the readability of variable names? what about readability of your post? how many times will you read it compared to times others will read it?
 
I'm trying to convert a char[4096] to a const char* but my compiler says it cannot convert from char(*_w64)[4096] to const char*, what would be the easiest to convert?
also when my buff array is not entirely filled up with data, and I don't want to take the junk as part of the string, which it seems to do when using a stringstream to do the conversion
 
12:06 PM
@Tony The conversion should be implicit, you don't have to do anything.
 
like this const char* src = &buff;
where buff is my array
 
@Tony char(*_w64)[4096] is a pointer to an array
 
@FredNurk when i compile above code I get this error: error C2440: 'initializing' : cannot convert from 'char (*__w64 )[4096]' to 'const char *'
 
yes, you cannot implicitly do that conversion
 
so can I do it at all?
 
12:09 PM
@FredNurk Oops, misread the question, sorry @Tony .
 
I'm afraid of telling you to simply use [0], as you may be missing something bigger
 
@CharlesBailey it happens to the best of us :)
 
I really can't give you the right answer based on this (too little) information
 
@FredNurk, missing something bigger?
You mean you are missing the picture into which this fits?
Ok
 
but dereferencing the pointer to the array will give you an array, which will implicitly convert to a pointer to the first item
 
12:11 PM
@Tony Wait, no. I didn't. You can convert from char[4096] to const char* implicitly. I don't know what the pointer to array is doing in the error message.
 
char buff[4096];
		while (oracle.next())
		{
			modkey = oracle.getInt(1);
			language = oracle.getString(2);
			//ModSource
			oracle.getStream(buff, 0, 3);
			code = oracle.getString(4);
			style = oracle.getInt(5);
			type = oracle.getInt(6);
		}

		const char* src = &buff;
		source = src;
 
don't use &buff
= buff
buff is an array, so &buff is a pointer to an array
 
@Tony Ah, no. You want const char* src = buff;, not &buff.
 
source code context makes many things clear :)
 
@FredOverflow :)
hehe
one more thing it seems to copy in the junk as part of the string, if the entire buffer is not filled
 
12:14 PM
are you missing null-termination?
 
yes
seems like
 
don't suppose anyone here knows a good way to play settlers of catan online? (the playcatan.com client works, but poorly)
 
 
7 hours later…
7:13 PM
@Tony Why the smiley at me? I think you meant to address Fred Nurk, not me, right?
 
7:57 PM
@sbi i've just outed myself on my info-box as "When I'm using the term STL, I refer to the Standard Thread Library introduced by C++0x." haha
 
8:11 PM
@FredOverflow: sometimes we just smile at you when you're not here
2
@TomalakGeretkal: :)
@SimoneDAmico: you need 20 rep, or something like that, to chat, fyi
 
8:32 PM
@JohannesSchaublitb That should be "TSL": it's the Thread Support Library :-D
 
8:59 PM
@JamesMcNellis it wouldn't be fun anymore :(
 
sbi
9:45 PM
sbi, Berlin, Germany
41.4k 2 39 108
 
advertising yourself ? :)
 
sbi
Dammit, I was linking to the chat's profile (not the SO one), which comes with the about: "The Grumpy Old Man". I am the grumpy old man, so I got the right to be grumpy, no matter what explanations and excuses @Johannes comes up with.
Re advertising: See my comment at stackoverflow.com/q/4591330/140719
 
don't hog all the grump, save some for the rest of us
 
sbi
@FredNurk You can have your share once your old enough! :)
 
10:31 PM
once his old enough what
 
sbi
@TomalakGeretkal He can have his share. (There's an upside-down mirrored Enter-style arrow left of my message. If you click on that, the message mine refers to is highlighted.)
 
you missed my point
also thanks yes I know which message you were referring to
 
 
1 hour later…
11:59 PM
@sbi (since I got bored of waiting to see whether you'd enquire.... my comment was a dig at your "once your old enough" vs "once you're old enough" :P)
 

« first day (80 days earlier)      last day (4867 days later) »