« first day (675 days earlier)      last day (4291 days later) » 

3:00 PM
explains why you are so reluctant for a meet up outside of Portugal
yeah, first try!
 
@thecoshman What?
 
@R.MartinhoFernandes A comedy with 98% on the Tomatometer? Damn.
 
@R.MartinhoFernandes when meet ups where mentioned, you where very firm that you could travel that far, your age some what explains why
IOW young => poor
 
If i have std::vector<MyObj> myVec; myVec.resize(10) in what kind of state are the objects in myVec?
I would assume that the default ctor is called..
 
@Nils does resize actually construct the objects?
 
3:04 PM
@Nils Yes.
 
yes that is my question and I think so..
 
@thecoshman Yes.
 
oh, I am thinking of reserve :P that just makes space for them, saving you from a potentially slow resizing later
 
OMG, we fixed all the bugs. This is a bad sign, right?
 
What if I have a nested vector? vector<vector<MyObj>> myVec; myVec.resize(10); for each vec in myVec call resize(10)
 
3:06 PM
@R.MartinhoFernandes you're just not looking hard enough
 
It burns your house down. What do you think happens?
 
@Nils You get one hundred MyObjs.
 
did'nt read it all :P
@R.MartinhoFernandes more specifically, ten vectors each containing ten 'MyObj'
 
Ell
anyone played slenderman?
scariest fudging game ever
 
@Nils what?
 
3:10 PM
@thecoshman What what? :P
 
@Nils oh sure, remove it why not (╯°□°)╯︵ ┻━┻
 
@Ell Oh, I should try it, then.
 
@R.MartinhoFernandes oh, you like fudge as well?
 
No, I like scary.
 
but what about fudge?
 
Ell
3:14 PM
well honestly I'm a pussy but still
 
I named my Balloonicorn Steve. Because nobody expects a three feet tall pink inflatable unicorn to be named Steve.
 
@R.MartinhoFernandes it has Clang 3.1. It works with GCC 4.7
@Collin sorry, wrong reply
@BartekBanachewicz two days? That sounds awfully lengthy for something that takes half an hour
 
fuck it! I'm out of here!
see y'all
 
Alright, who's the jerkass who flagged this?
And now the flags are piling up.
 
Fucking flags!
 
3:28 PM
Oh noes.
 
Seriously. Who?
I guess we'll never know.
 
Wasn't I. What was flagged?
 
Do you guys know of a platform that supports voting on posts? (similar to 9gag/reddit/etc)
 
@Chimera This, this and this.
 
Howdy pups.
 
3:34 PM
Ze puppy.
And ze bear.
 
Only pups?
 
mawnin
 
@sehe Nobody likes you.
 
@EtiennedeMartel Yeah, that's a given. But why did the robot greet only pups?
 
@sehe Because I only saw him showing up.
 
3:36 PM
@R.MartinhoFernandes I come loudly
 
@sehe Because he and @DeadMG are in a relationship.
 
Oh, I missed that :)
It wasn't overly apparent in terms of posted messsages
 
I'm a living, breathing rumor mill.
 
@R.MartinhoFernandes You are
@R.MartinhoFernandes Safe edit :P
 
3:38 PM
edited out the fun, you mean
 
Mother of Zod, who wrote this catch all AJAX controller? Oh yeah, I did.
 
love is in the air
 
⚿ ♩♫♪|♩♫♩♫|♩
 
everywhere I look around
 
3:44 PM
⚿ ♩♫♪|♩♫♩♫|♩
 
Just link to YouTube.
 
Nah that doesn't flow. At least italicize it
 
the robot has no flow
 
_just to youtube you should link_
♩♫♪|♩♫♩♫|♩
 
3:45 PM
FTFY
 
@rubenvb Sure he does -- flowing hydraulic fluid. (Oh, and by the way, good evening to most of you).
 
glad to be included. likewise to you (and also pups)
 
@JerryCoffin Howdy.
 
@sehe Thank you, sir.
 
@JerryCoffin most?
 
3:53 PM
Why does std::hash need operator==?
 
it does?
never wrote an op== for any custom hash I wrote and never had a problem
 
@EtiennedeMartel Yes -- it's not yet evening for everybody (including you, unless I'm badly mistaken). Good morning to those on this side of the pond.
 
@JerryCoffin The "good" side of the pond.
 
@DeadMG I got an error related to an insert into an unordered set for a POD type I specialized std::hash for. It did have operator< implemented. Would that matter?
 
3:56 PM
@JerryCoffin Morning
 
@EtiennedeMartel I think it's barely possible some would disagree about which is the "good" side of the pond (or, for that matter, which is the "good" side of that "pond" sometimes known as the Great Lakes.
 
@rubenvb because otherwise you'd be helpless without a perfect hash function
 
Oh ==, not assignment.
 
:5023091 The POD type has two public members: a string and a time_t. I want uniqueness on the string.
 
@DeadMG UHOH- splains a lot about your success at the SHA2 thingie
 
3:57 PM
@sehe Wut-
@rubenvb I assume you do provide a custom comparator for the type?
 
@R.MartinhoFernandes operator<, yes.
 
The std::hash should need no such thing.
@rubenvb For an unordered thing? You need op==.
 
@R.MartinhoFernandes Well, if you can (imperfectly) hash, you know what bucket an item goes into. Without operator== how would you know which element is which. Although, obviously I'm confusing C# with C++ now - C++ could use WTO...
 
@R.MartinhoFernandes so it seems. I had op< for the non-unordered thing.
 
Should be obvious why.
@sehe But he mentioned it was std::hash that needed it.
 
3:59 PM
yeah, looking back it is obvious.
@R.MartinhoFernandes no, I said that was related.
 
@DeadMG I might be confused here. Too much C# lately and doing the cooking too :0
 
5 mins ago, by rubenvb
Why does std::hash need operator==?
 
3 mins ago, by rubenvb
@DeadMG I got an error related to an insert into an unordered set for a POD type I specialized std::hash for. It did have operator< implemented. Would that matter?
Sorry I'm not a robot.
 
@R.MartinhoFernandes Well, it still makes sense as a good policy. How would an imperfect hash ever be useful if you can't define equality for it too?
 
5 vs 3. I win.
@sehe You don't define equality for the hash function.
That makes zero sense.
 
4:00 PM
@R.MartinhoFernandes Obviously not.
@R.MartinhoFernandes That's why I interpreted it to mean the obvious thing that made sense :)
To use std::hash<T> with an unordered container, do you need bool T::operator== defined as well?
 
Hello
 
@R.MartinhoFernandes wut? That should be the other way around: you didn't read what I wroote
 
Question
is #include in C++ the same as import in java?
Does it have the same meaning
 
@rubenvb You just started off too fuzzy :)
 
@rubenvb You're still yapping on about it. I win :P
 
4:03 PM
@sehe of course. first time with unordered stuff for non-std types.
 
@JosephPotts Nope. #include is lexical within a translation unit. Java has 'modules' (classes) which are defined as metadata, essentially
 
Ok. ty.
 
@R.MartinhoFernandes the robot always wins FTFY
 
@R.MartinhoFernandes I didn't think you had a little sister :)
 
hey curiousguy dropped in here for about a sec.
 
4:09 PM
@JosephPotts import in java tells it to look at the other class, so we can use it in this file. include in C++ almost-literally copy-pastes the included file into this file.
 
@rubenvb You must be seeing things. He was suspended.
@sehe What does that mean?
 
@R.MartinhoFernandes The message I replied to seems like something you'd learn to say to/hear from your little sister. I never guessed before
 
@R.MartinhoFernandes I meant 11h ago.
 
whoa
 
I may not have scrolled back and forth enough.
 
4:12 PM
ooh, one of the guys at work altered the post-build system so that if I build a project in release mode it no longer corrupts my install! hooray!
 
that seems useful
 
a struct file{ string name; time_t time_modified;} does not have a useful copy constructor?
 
@rubenvb say what? Of course it does (I think your sample requires names to compile, but assuming it compiled, should have copy constructor)
 
The rule of zero hinges on that having a useful copy ctor.
Woot, we've got bugs again!
 
depends on the actual definition of time_t, but assuming it is C compatible, it should have implicit, usable copy constructor. Where does 'string' come from?
 
4:15 PM
std::string
 
typedef char const* string; // I hope newbies don't see this
 
you know, the way to guarantee they don't is: don't post it
 
@R.MartinhoFernandes typedef std::vector<signed char> string ?
 
dammit. @Xeo I can't modify an *it where it is a std::unordered_set<structthing>::iterator.
@MooingDuck unsigned char
 
@rubenvb obviously
 
4:17 PM
@MooingDuck not that obvious.
 
@rubenvb can't modify keys. For a set, the value is the key.
 
@rubenvb It's a little unfortunate.
 
The standard library has no associative containers that actually support intrusive keys.
 
but I'm not modifying the key's important bits. Guess I'll need that reference_wrapper and a map anyway.
 
@R.MartinhoFernandes now that I think of it, it's not impossible though, with existing containers. If you're crafty. I think.
 
4:18 PM
@R.MartinhoFernandes intrusive keys?
 
@DeadMG Keys that are part of the value.
 
oh
 
I think that's a good name for it.
 
@DeadMG key is unique_ptr.get()
 
I'd suggest wrapping your struct in a class that gives you mutable access to the non-keyy bits.
 
4:19 PM
I was just told by someone "You are a very bright person!" It's a shame that it was by a blog spammer; I'm not sure if he was serious.
 
why don't the projects at work match their output names? I need a db.lib, and have no idea which project to build to get it :/
 
> Science believes that science, humanities humanities without solidify, we would like to create a forum for exchanges between college students!
Google Translate does a terrible job with Japanese.
 
or maybe it was just terrible Japanese to begin with
 
It's Internet. It's both.
Also woo I made an answer and got 7 points.
 
@CatPlusPlus You are a nice person.
 
4:29 PM
You suck.
An answer with 7 points doesn't even give a badge.
 
@MooingDuck Can't you just use a set with a funky use of a comparer.
 
@EtiennedeMartel all objects would be immutable
You'd want to use a map where the key is a... no wait, that doesn't work. Can't make a reference to the value that doesn't exist yet.
 
alright, we need a new container
 
Ell
Hi guys
 
4:36 PM
hmm..how come that this channel shows my SO rep, but the gamedev channel shows my combined SO + gamedev.SE rep?
 
SO chat is separate from the rest of the chats.
 
should have figured you guys are special :)
 
@R.MartinhoFernandes are all the other chats combined? I thought there was three
 
Ell
yeah my EE is >3000
so i figure its combined
what with getting a free 100 rep for each se site
 
Aug 12 at 10:41, by Cat Plus Plus
If you are new here, read the code of conduct now. Thank you.
 
4:41 PM
@MooingDuck There's chat.SO, meta.chat.SO, and chat.SE.
 
Aug 12 at 10:41, by Cat Plus Plus
If you are new here, read the code of conduct now. Thank you.
 
@R.MartinhoFernandes You seem to have missed the crucial "Nuke the site from orbit" -- as we all know, "it's the only way to be sure." The (slightly) more subtle "zap with space laser" option would be useful too...
 
3
Q: Why is "The Definitive C++ Book List" question allowed, but other book recommendation questions are not?

Robert Harvey Why does this question get a pass, but I can't ask my own book recommendation question? Can I ask my own book recommendation question in a way that is acceptable to the community, like the C++ book list question?

 
@RobertHarvey Because we're awesome.
 
@MooingDuck problem description, check. error description, check. code sample, check. not whining, check. c++, check. what did I miss?
 
@RobertHarvey thanks for the notification
@klut "we don't answer questions here"
 
4:47 PM
@MooingDuck you mean "we don't care" right?
 
@klut Not whining. That was whining, btw.
 
@klut "#0 we're not Stack Overflow" mainly
@ecatmur debatable, he's defending himself when I challenged him, and it's not completely obvious that he's wrong.
 
For me, killing my screen space with a bunch of code is annoying.
It pushed my link about Mira out of the screen :(
 
wasn't the C++ book list on the C++ tag wiki for a while?
 
Yeah, but tag wiki sucks.
 
4:49 PM
@Jerry is the bestest.
2
A: Why is "The Definitive C++ Book List" question allowed, but other book recommendation questions are not?

Jerry CoffinGiven the (high) degree to which almost all programming depends upon books (online resources are rarely a complete substitute), what should probably be done is every tag wiki should have a tab (or some other convenient way to access a section) devoted to the book list for that subject.

Vote him up.
 
A true hero. Posting on meta so we don't have to.
 
Yay!!
Upboats floating your way @JerryCoffin :)
 
Lol people are still closing that question.
 
@CatPlusPlus it's either that or we have to defend this question for the rest of our lives since it's in the "wrong" place
 
@MooingDuck We have our own wiki.
 
4:51 PM
@CatPlusPlus we as in the chat? I don't see how that's helpful
Yeah, book list was added to the wiki, but sbi removed it
 
Most of the people who care about or link to that list are here.
 
@MooingDuck It was, but it was pretty much mashed together with the rest of the tag wiki, which was a mess. To be useful, it needs to be easily accessible.
 
@MooingDuck If it goes out of SO, it must be a std::move. DRY.
 
@JerryCoffin I like the "tabs" idea. Or otherwise having multiple pages
 
@MooingDuck I would agree with you regarding @ecatmur as well as "#0 we're not Stack Overflow". I wouldn't say posting the question was wrong. If no one answers, it's not like I was going to keep posting (because that would be following the CoC). I thought you posted CoC saying you wanted my source code. Then once I posted my code, and you again linked CoC,
that was just confusing. Wouldn't following the CoC pertain to you being quiet and not responding to me so you don't miscue me into what you're thinking?
 
4:53 PM
Anyway, just saying.
 
If I have a byte array and know that there's a float 2 bytes into the array. Is this the correct way to read that float?
char *bytes = xxx;
float f = *((float*)(bytes + 2));
 
@AntonHolmquist no
 
Also, don't jump on the newbie, people.
@klut For the future, code walls go on ideone either way.
 
@klut possibly. I could have been clearer.
 
@klut I moved your messages away because of the code. If you want to post code that is longer than a couple of lines, post it elsewhere and link here. No one likes to have their screen all of a sudden contain nothing but someone's problematic code.
 
4:55 PM
@MooingDuck I thought so. Thanks for pointing out. If you could give me the correct snippet, I would be very thankful :)
 
@AntonHolmquist yes
 
@AntonHolmquist yes :(
 
;)
 
@MooingDuck :) Seems like you agree. Thanks guys!
 
@AntonHolmquist wait, maybe, there's a potential alignment problem there.
 
4:56 PM
I can barely move.
Waah.
 
@CatPlusPlus thank you, I was unaware of that tool. @R.MartinhoFernandes I understand, sorry for the sloppy post.
 
@AntonHolmquist on some targets that will work, but it may be better to bitwise-copy it to an existing float instead, for alignment.
 
@AntonHolmquist memcpy it.
 
@MooingDuck I'll try that.
 
std::copy.
Dammit.
 
4:58 PM
@R.MartinhoFernandes Thanks.
 
@CatPlusPlus Won't work.
At least not without a reinterpret_cast.
memcpy is straightforwarder.
2
(The worst about using std::copy is that using it without the cast compiles, but does the wrongest thing)
 

« first day (675 days earlier)      last day (4291 days later) »