« first day (586 days earlier)      last day (4359 days later) » 

8:00 PM
I might as well do the same with endl
 
sbi
The only file you cannot put an iterator into is a rasp.
 
There's a lot of -X% on Steam today.
 
I must've missed a sale announcement or something.
 
@CatPlusPlus Shut up, I promised myself I wouldn't spend any more this month.
 
You're mean.
 
@mike you are wrong. the this-> prefix is required. that the name is dependent is not sufficient for it to be looked up in the dependent base class. gcc fixed this bug in their latest release. — Johannes Schaub - litb 10 mins ago
 
Dungeon Defenders is fun.
 
Yeah although too many DLCs now.
This is getting milk-cowy
Like Magicka
 
sbi
@RMartinhoFernandes The @Cat said you can put iterators into .hpp files, which got me thinking what files you could not put them in. Which in turn brought me to these:
 
8:04 PM
It's fun even without DLC.
 
@JohannesSchaublitb why the link?
 
It's a onebox for comments.
It links automagically.
 
sbi
@MooingDuck This is called drive-by linking. You're supposed to flag the comment.
 
Xeo
@RMartinhoFernandes Exactly my thoughts.
 
sbi
48 mins ago, by sbi
@Xeo I just don't want the room to go quiet because you lured everyone to The Site That Must Not Be Linked.
 
8:08 PM
:(
 
The sbinator is pissed.
 
Someone got troped.
 
Xeo
@sbi Too slow! Even editing it into an earlier message doesn't change that fact!
 
sbi
@Xeo What you talking about?
 
Xeo
8:10 PM
@RMartinhoFernandes: Psst, I got a plan. You post TVTrope links, and I post some random comment inbetween. That way, the ape can't keep up and also can't just mark the whole bunch to transfer it over!
 
eh, bag it, this is too hard. I'm going to make the fool code work with contiguous strings only.
 
What, I got drive-by downvoted.
 
sbi
@Xeo Tell me one reason I shouldn't just zap some random comments from you.
 
Xeo
8:12 PM
@sbi Because they will obviously be meaningful comments that enrich the knowledge of everyone that happens to lay their eyes on them!
 
@rubenvb yes. Same as when you pass an int to sqrt (pre C++11)
 
sbi
@Xeo You have a hard time writing something meaningful here when you try hard. With random comments, you have a snowball in hell's chance.
 
@MooingDuck But I can call std::fabs with an int: ideone.com/vZS2l
 
Hello all, question.
2
Q: Should std::reference_wrapper contain the default comparator "<" operator?

vsaxenaThe STL uses the "less than" as the default comparator. An STL comparator call on an object wrapped with the reference_wrapper<> does not compile, even if the underlying class has the "<" operator defined. It seems, this is because there is no implicit conversion performed on on the LHS of...

 
sbi
@rubenvb Oh, @James wrote it. What was your question again?
 
8:14 PM
Anybody thinks this is downvote worthy? stackoverflow.com/questions/10744403/…
 
@rubenvb oh, fixed in C++11, nice: en.cppreference.com/w/cpp/numeric/math/fabs
 
@sbi Why that's true. Oh C++11 fixed it.
 
Do you guys view this as constructive? I'm having a hard time doing so, especially given the comments on the non-deleted answer there.
 
Aha
@MooingDuck no not quite: ideone.com/hp7UW
 
sbi
@casperOne "Note, however, that showing up just to dump a link to your question and not to participate in discussions (called drive-by linking) is frowned upon." – from this room's newbie hints
 
8:15 PM
@sbi I can call std::fabswith an int, why is the answer saying otherwise?
 
@sbi Yes, I know, but you know why I'm here when I pop in nowadays. =P
 
Since the question involves "semantics" it must therefore be constructive
 
@EtiennedeMartel I'd simply comment, no downvote.
 
Semantics are always constructive
@EtiennedeMartel I would comment. I keep my downvotes for real bad answers
 
sbi
@rubenvb No, that's wrong. Your question was "Is this true?" Which would be answered by "James said it." :)
 
8:16 PM
@casperOne It would have been constructive if his view wasn't "I need this and nothing will change that".
 
@sbi And it's not my question, and you definitely know that =)
 
@sbi So can you do this in legal C++03? or C++11? ideone.com/hp7UW
Cause this is getting very confusing
 
@casperOne Oh god, not that question again. I second @GMan.
 
sbi
@casperOne Oh. Well, in fact, I did not know. I didn't even look at the question close enough to see the author. Sorry, my fault.
 
Xeo
@casperOne: The problem with that question is the author's stubborn nature, IMHO. He doesn't want to accept any reasoning and just have his theory confirmed.
 
8:18 PM
@sbi No problem, I just thought you knew by now a) who I am and b) I know absolutely nothing about C++ and that's why I come in here to ask about moderating those questions. Or have you forgotten me so soon? =)
 
According to the OP, we are engineers because we can appropriate the wrong tools for the wrong task.
 
@casperOne What's the meaning of your life if you don't know C++ o_O ? :)
4
 
Alright, that said, I'm getting the impression you guys are ok with me closing it as not constructive. I really wasn't seeing anything being achieved in the comments, the whole thing seemed to be a shitshow
 
@casperOne @sbi is an old grumpy ape, Alzheimer's comes with the package ;-)
So!
 
Xeo
@rubenvb lol
 
8:19 PM
@casperOne Yeah, you can close it and we'll be fine. You can do what you wish with the comments on my answer as well, it stopped being useful a while ago so I'm done replying. Move to chat, etc.
 
Xeo
@rubenvb It has come to this!
 
@ScarletAmaranth I starred that, I approve. To be honest, I'm still looking for it. =P
 
> As someone who came from a heavy C background (ptrs, ptrs, everywhere, all from the heap), the preference for not using ptrs is amusing, to say the least.
 
sbi
@casperOne I knew you to be a mod (what with the blue name), but even mods might be interested in a C++ topic once in a while.
 
I'll ask again: why does James say that you can't call std::fabswith an int.
 
8:20 PM
@casperOne You're looking for it YET it's right in front of yours eyes. It begins with C and ends with ++ :-)
 
You should learn Haskell
 
@rubenvb pre C++11 you couldn't without casting it first
 
@GManNickG I'll just be closing it. If it's deleted, that will be the community, or it will be in the future and no one will care because it's an old NC shitshow
 
sbi
Oh, not again, please.
 
@MooingDuck Well, GCC accepts it nonetheless
 
8:21 PM
@rubenvb GCC supports C++11.
 
@sbi Not anytime soon, no worries.
 
@GManNickG he's not compiling with C++11
 
@ScarletAmaranth Perhaps. But I keep getting pricked by all the points on the ++...
 
@sbi Bill is not just some mod. Bill is the mod.
 
8:21 PM
Sheesh. You guys are in denial today :)
 
Thanks all, appreciate the input.
 
sbi
@casperOne Nonono, I was referring to The Programming Language That's Constantly Oversold Here.
 
I've been rendered baffled seeing there are still people who don't know C++.
 
@rubenvb I dunno if ideone uses -std=c++98 in non-0x mode.
 
@sbi Ahh, NP. Got it. And now that I read it, it's quite funny
 
8:22 PM
@rubenvb Then it's an extension of some sort.
 
Thanks again all. Laters.
 
@ScarletAmaranth I don't know C++. Deal with it.
 
sbi
@RMartinhoFernandes Actually I didn't need you to underline my point. It was well-made already.
 
@casperOne Thanks for dropping in, ++many karma for you.
 
8:22 PM
Har har.
 
sbi
@RMartinhoFernandes Almost.
 
Instant karma, +5 to spleen.
 
the more I use en.cppreference, the less I trust it. I find more errors there than cplusplus.com (today, the std::abs and std::fabs pages both)
 
Xeo
@MooingDuck There comes the best part: Fix them!
 
@GManNickG My GCC 4.7 on any setting does not complain
 
8:24 PM
@Xeo Yeah, right. Have you tried that?
I've fixed a bunch of stuff so far, and it's not easy.
 
I prefer using what I have made here. — Milo 3 mins ago
 
@rubenvb Hm, I'm not sure then.
 
Gaceralm.
 
Heck, Clang doesn't even complain (although it might be a libstdc++ issue of course...)
 
PB are neat.
 
8:26 PM
"The thing I made is not working, but I prefer to use the thing I made".
 
@CatPlusPlus It almost looks like bencoded data.
 
So NIH.
 
aren't int converted to doube when necessary?
 
sbi
@LuchianGrigore, true, I just never thought it'd be bad to go out and back in. — chris 12 mins ago
@chris that's what she said :| — Luchian Grigore 11 mins ago
 
@Cicada Peanut Butter is good.
 
8:26 PM
@rubenvb And to float too. And to long double too.
 
@rubenvb int can be implicitly converted to double, yes. But also to float or long double. Neither of those is better.
 
There are no references in C. Perhaps you meant C++. — Daniel Kamil Kozar 1 min ago
 
Nope.
 
Xeo
@RMartinhoFernandes Not loading for me
 
8:28 PM
Damn.
 
Xeo
Why, which paper is that?
 
I'm starting to think this fabs(int) is a C holdover
 
"Call for Library Proposals".
I wanted to link to it from a comment.
 
sbi
Actually, it seems open-std.org is dead altogether.
 
@rubenvb Couldn't be. C has no overloading.
 
8:29 PM
I honestly can't find any declaration of fabs(integralsomething) anywhere in the MinGW-w64 or libstdc++ headers
Anyone have Clang with libc++?
 
> When i compile, it says me: std::ostream& logic::operator<<(std::ostream&, A&)' must take exactly one argument. What is the problem?
 
@rubenvb It works in C++11 because it's suppose to, and if it works in C++03 it's an extension.
 
I'm running out of disapproval expressions.
 
Throw them cheese
 
8:30 PM
@GManNickG with -std=c++03 -Wall -Wextra -pedantic? I don't think this is an extension.
 
sbi
@Cicada You seem to confuse cats and mice.
 
I just realized I grepped the libstdc++ headers for std::fabs <facepalm>
The bastards put it in without any ifdef
 
Cats love cheese
 
@rubenvb It should fail for the same reason this does: ideone.com/Tii4O
 
8:32 PM
@rubenvb It breaks no code...
 
Does anyone know of a tool in Windows that can test read/write speeds on hard drives? I thought there would be a built-in one...
 
@RMartinhoFernandes sure it does, anything that implicitly converts both to float and int.
 
@RMartinhoFernandes it breaks code written with libstdc++ and compiled with MSVC.
 
@MooingDuck Nope.
 
Even libc++ just flings it in there
Where's the decency of these library implementors
 
8:34 PM
@rubenvb That's new code. It doesn't break existing code.
Library implementors add extensions sometimes.
 
Extensions not labeled: "Warning: extension" are dangerous
but hey, I'm ranting
/rant
and goodnight!
 
heh, a voice just came on the radio midsong that said "hey, is this on?"
 
@MooingDuck Because the overload for integral types is a template that uses type deduction. No implicit conversions are considered.
 
@RMartinhoFernandes oh, right, clever.
 
Xeo
8:37 PM
@dreamlax I'm pretty sure there is one, I just can't remember the name
 
@Xeo: I've typed "test" and "speed" into the start menu search box but nothing relevant comes up...
 
@dreamlax You trust that thing?
 
Xeo
@dreamlax Oh, builtin? No, I don't think so
 
@EtiennedeMartel lol, E_NOTADATABASE for NoSQL.
 
8:39 PM
@RMartinhoFernandes "I believe I did, Bob"
 
@RMartinhoFernandes: Most of the time yeah... it brings up relevant results when I'm looking for a document or program... like I search for "snipping" etc. to bring up the snipping tool or "n1256.pdf" if I want the C standard etc.
 
"Probably pretty fucked." for MySQL. It's really accurate.
 
Should be "definitely".
 
Xeo
@RMartinhoFernandes "Massively fucked" for MS Access
 
@CatPlusPlus MySQL works pretty well for projects that don't matter.
// this might be counterintuitive, but trust me on that one
 
8:41 PM
Does MS Access support right joins yet, or do you still have to write the query the other way around and use a left join?
 
I just wrote that comment in my code.
My coworkers are going to love me in a few years.
 
// this might be counterintuitive and it probably is
 
I got a hash set, alright. And I put shit in it. And there's a place where I check if there's shit in it, and if there is, then I remove the shit, and then add it again.
Hmm.
 
eleven
 
8:44 PM
I think I just found a better way.
 
eleven
 
That's one louder than ten
 
The great thing about eleven is that nobody pronounces it the same way every 250km in the UK.
 
4 mins ago, by Etienne de Martel
// this might be counterintuitive, but trust me on that one
 
@RMartinhoFernandes you're predictable
 
8:45 PM
@EtiennedeMartel Why would you do that
 
@Abyx I'm a robot after all :(
 
@Cicada I'm working on custom stylesheets, and when a style is encountered a second time, it has to overwrite the previous style.
So, I overloaded Equals and GetHashCode for my styles, and I put them in a set.
The reason I need to remove and then re-add is that I must replace the old properties with the new ones.
 
My BBQ Chicken Subway sandwhich very clearly has Teriyaki sauce again. Happens about every other week.
 
@Abyx Deterministic.
 
I'm thinking more and more that this chat is full of .NET refugees
@EtiennedeMartel Changing properties changes the hashcode I guess?
 
8:48 PM
@Cicada No, it doesn't. And that's the trick.
 
Hashcodes shouldn't change.
 
Then I don't get the point of removing stuff.
 
@Cicada Because it's not the same style.
 
Your style is immutable or something?
 
Or, rather, it's not the same instance.
@Cicada Yes, once it's loaded.
 
8:49 PM
The instances you remove / put are immutable I mean?
If so then I do understand
If not I don't
 
Yes, they are.
 
Branch 1 it is
I do understand
Doesn't seem too unlogical to me
 
Technically, it should be some sort of Dictionary<StyleKey, Properties>, but I merged the key and the value in one object.
Not very clean.
I guess I should split them.
 
Probably.
 
sbi
Gotcha!
 
8:53 PM
So I thought it was time to annoy you guys. And girl.
afaik.
 
@RadekdaknokSlupik I appreciate the effort.
 
Oh man... GDI has run out of handles again... I'm getting the default font everywhere and things aren't loading...
I thought in Win7 GDI objects were no longer kernel objects...
 
Don't use Windows.
 
Can't help it, set by the MIS division of the company
 
What's GDI? Ain't there no alternative?
 
8:59 PM
@sbi Aw man, are you in some kind of crusade?
 

« first day (586 days earlier)      last day (4359 days later) »