« first day (262 days earlier)      last day (4686 days later) » 

4:01 PM
@Als: If I wanted to view the question, I'd check the questions list
 
Als
@DeadMG: well its an old Q
I am thinking of adding it to c++faq tag
isnt't C++ lounge the place, where this needs to be discussed?
 
something wrong with the comments on the question?
if it needs to be FAQed, then we'll find dupes of it plenty of times to link back to it
 
Als
It has been asked several times in one way or other
what is wrong in the comments?
 
nothing
that's my point
 
Als
sorry i did not understand
 
4:07 PM
if it's a good FAQ candidate then people will link back to it all the time
so the comments there is going to be a perfectly good place to talk about it
 
Als
In my understanding, Q's are tagged Faq and then people link back to them
 
no
Qs are tagged FAQ because people keep asking duplicate questions and that is the original question
 
Als
well yes that is the case, correctly erasing a vector is something people ask no of times
 
Well, it's not necessarily the original, but the one that is the best source of information.
 
Als
in one way or other
@MartinhoFernandes: Yes, so that is the reason for asking the suggestion
 
4:11 PM
then plenty of people will view it and the comments will be a plenty fine place to discuss it's FAQ-if-ication
 
Als
and it can be only discussed here
@DeadMG: That is an assumption, about people leaving comments..
 
@Als: If nobody cares, then it's probably a bad idea
 
Als
@DeadMG: I dont see any of the FAQ q's being discussed to be faq in the comments
 
or just exercise some initiative and do it
Uncle FAQ does those ;p
 
Als
@DeadMG: I know i asked because i wanted to stick to the policy of discussing faq in here and taking a opinion
 
4:15 PM
I never give an opinion
 
Als
@DeadMG: At your rep, you should :)
 
rep shmep
 
Als
haha
 
what?
rep is about activity
answer enough questions, you'll get a high rep
 
Als
@DeadMG: Anyhow, my intention was just to follow the practice uncle faq @sbi, put in place
 
4:17 PM
Shh... he seems to be around.
 
Als
@MartinhoFernandes: aha the man himself @sbi: Hey grumpy man :P
 
Ugh, I hate it when sub-par answers get accepted over good ones.
 
sbi
@Als What's up? Being on holiday and rarely online, I don't feel like I want to catch up with everything afterwards, so please fill me in if I missed something important.
 
Als
@sbi: Uncle faq duties at call
I was thinking of making this a faq
8
A: Does vector::erase() destroy the removed object?

Alsvector::erase Removes from the vector container and calls its destructor but If the contained object is a pointer it doesnt take ownership of destroying it. You will have to explicitly call delete on each contained pointer to delete the content it is pointing to, for example: void clearVector...

asking if i should
 
sbi
@Als Asking whom? Not me, surely.
You kids will have to learn to decide for yourself at least as long as I'm on vacation.
 
Als
4:21 PM
@sbi: Holidays?! whoa you lucky man!
@sbi: Well, the faq is your baby, and as long as you are here the baby is going to cry for the pops!
 
I personally don't really touch anything with the FAQ
 
sbi
@Als I don't hear the FAQ crying. I hear you crying, though. :)
 
and I always grump when people link questions in the chat
 
Als
@sbi: ok..
 
sbi
How about we introduce a PROLOG FAQ, @Dead, would you participate in that? :)
 
4:23 PM
lol
 
@sbi If we did that, he'd only accept questions similar to "Why does PROLOG suck so much?"
 
sbi
@DeadMG You could cut that sentence to "I always grump" and it'd still be right. Maybe even more so. :)
 
lol
 
He's the Grumpy Young Man.
 
hey, that's not always true
when I start grumping, I often keep grumping, but there's usually a cause, and if there isn't, I don't start
 
sbi
4:25 PM
@MartinhoFernandes As a young man, you can be grumpy, but to be Grumpy, you need to be old enough.
 
Als
@sbi: so, whats the opinion? You don't want me to tag it or you just don't want me to ask
 
sbi
@DeadMG I wouldn't call yours "grumping". At your age, this is called "whining".
 
I see
so the difference is purely based on age?
 
sbi
@DeadMG No. It's experience, but that takes age. :)
 
I see
 
sbi
4:27 PM
@Als My opinion is that I'm sitting on a shady terrace on the otherwise sunny Canary island of El Hierro, looking at the sea, having just finished a book, waiting to have dinner, and don't feel like looking at SO questions, let alone decide about their future as an FAQ entry.
Would that do?
 
lol
 
@sbi What were you reading, if you don't mind me asking?
 
sbi
@MartinhoFernandes Larry Niven and some unknown co-author the name of which I forgot, Harlequin's Moon.
 
Als
@sbi: Thanks for the opinion, will not ask to participate in the Faq's anymore.
 
It's Brenda Cooper. I ordered that one last week.
Did you like it?
 
sbi
4:31 PM
@Als Don't be shy to ask, but I might decline to have an opinion. :)
@MartinhoFernandes It wasn't bad, actually. I though the underlying plot idea was somewhat questionable, but the way the two dealt with the inter-human relationships was pretty good and convincing.
@MartinhoFernandes Wow, now that I think of it, that's quite a coincidence!
 
@sbi Nice, that's good news. I've always found Niven somewhat lacking in that aspect (the relationships part).
 
sbi
Trouble is, this is only my 6th day of vacation, I'm out of books, the animal protection league (who give away books for a small donation on Sunday market) didn't have any interesting books on Sunday, and I'll have to wait till next Sunday to lower my standards enough to buy another book. I might now have to resort to crime, which I don't like, but which is available in abundance in this household.
 
Oh, crime books. For a moment there...
 
sbi
@MartinhoFernandes Well, but maybe my demands aren't up to your standards. :)
@MartinhoFernandes LOL!
 
@sbi You seem pretty desperate :)
 
sbi
4:41 PM
@MartinhoFernandes I wasn't when I started this book. However, I spent most of the night before last reading instead of sleeping, which made me finish it much earlier than I planned to.
Now the next bookshop with English books is on Tenerife, which is a 4hr boat trip, a bed to stay over night, another boat trip, and a lot of money away. (I could fly, too, but that would make the book even more expensive.) So I have to wait until Sunday market again.
 
I guess crime will have to do. At least you might be able to get some sleep :)
And if you do get hooked into one of those and avoid sleep to read, well, you're liking it.
 
sbi
@MartinhoFernandes Why would I need sleep at night, when I can nap during the day, between swimming in the Atlantic?
 
Oh, yes, vacation means you don't have anything to do.
 
because swimming in the atlantic sucks
it's cold, and salty
 
sbi
@MartinhoFernandes Yeah. I only have two of my bigger kids with me, who can pretty much watch after themselves. That is holidays!
@DeadMG Well, you know, this is not exactly the British west coast here. The Atlantic at this time of the year has ~22°C. For a middle European like me, that seems jolly good.
 
5:09 PM
wow, you should swim at Porto de Galinhas (PE, Brazil). It is the Atlantic but temperatures are around 25-28º in the summer.
 
true, yours could be a lot warmer
 
@MoacirPontiJr Yeah, but that's like, in the tropics.
 
@MartinhoFernandes, yep, sorry about that.
 
What's there to be sorry about?
 
@MartinhoFernandes i'm sorry :(
 
5:17 PM
Everyone's sorry after the fact.
 
just kidding.
 
What fact?
 
I'm bored.
 
5:19 PM
you can troll on SO and answer some questions
 
@MartinhoFernandes why don't you clean up your room for once?
Or you can troll here about singletons.
 
@StackedCrooked I'd prefer to be bored, to be honest.
 
@CatPlusPlus I know the feeling :)
I'm mostly preaching against myself, actually.
 
@StackedCrooked How did you know about that?
 
Damn
 
5:21 PM
@MartinhoFernandes Because it applies to most developers :)
 
A shitnado attacked the office bathroom
 
My excuse is that I'm a student, and students don't have time for silly things like this.
 
@CatPlusPlus I'm a student as well!
 
My excuse is that I am an adult living the life of a student.
 
There's shit on the walls
 
5:22 PM
Not sure if that is a good excuse though..
 
@Xaade Wait, what.
 
@Xaade I draw the line at shit on the walls.
 
Seriously.... someone clogged a toilet and shit is everywhere...
 
7
Q: getting a const_iterator from iterator

Armen TsirunyanI want to write a metafunction which returns the corresponding const_iterator from an iterator template <class Iterator> struct get_const_iterator { typedef ??? type; }; get_const_iterator<int*>::type must be const int* get_const_iterator<const int*>::type must be const ...

I think this is a duplicate. Voted to close.
 
2
A: getting a const_iterator from iterator

spraffYou can do it in C++0x template <typename Container> Container container (typename Container :: iterator); template <typemame Iterator> struct get_const_iterator { typedef decltype (container (Iterator())) :: const_iterator type; }; Although I'm starting to agree with Steve --...

 
5:25 PM
@JohannesSchaublitb I looked at this code sample again today: ideone.com/6SDsv And I'm a little confused because it assumes that long long is 64-bit and long is 32 bit. Shouldn't it also work on an architecture where long is 64-bit?
@JohannesSchaublitb ah now I see, its purpose is different than what I had in mind. Never mind then.
 
I thought it would intelligently map Integer<32> to long and Integer<64> to long long. But it would map Integer<64> to long if long were 64-bit on this particular platform. I hope I'm making sense...
It's just a puzzle I've thought about, but haven't yet solved.
 
Hi, everyone. Why do you think there is no HugeInteger class in boost?
 
Because Boost is already huge enough as it is...
 
5:36 PM
@ArmenTsirunyan And why is there no HughesInteger?
 
And why is there no HughesJazz?
 
There are so many great people named Hughes out there. And what do they get? Nothing.
 
I feel kinda stupid :)
 
Howard Hughes and the way to the future, the way to the future...
 
Boost wanted to have EnormousInteger, so their integer were the largest, but it caused some unforeseen consequences.
 
5:38 PM
I think the largest built-in type is 64-bit on today's platforms.
 
Nope.
SSE is 128-bit.
 
Is SSE a type?
 
Well, it's a vector really, but still.
 
Sorry, I have no idea :)
 
Okay, SSE types, nitpicker.
Firefox Y U HIGHLIGHTING MY WORDS, THEY ARE PERFECTLY FINE. Geez, having multiple dictionaries does not work like it should.
 
5:40 PM
yeah, but there can be a type that can hold arbitraty big numbers... and that class comes in handy once in a while... I mean, they have so many things that they call general-purpose that I can't even imagine a usage... but sumething as simple as this is missing...
 
Just use MPIR.
 
You could create a variable-size numerical class that behaves like an int. You could use arbitrary lengths using Integer<256> and so on.
 
@StackedCrooked That's exactly what I'm talking about.
 
@ArmenTsirunyan implementation is left as an exercise to the reader :)
 
MPIR/GMP have arbitrary precision integers and floats.
And they're not the only bigint libraries out there.
No point in reinventing the wheel. :P
 
5:43 PM
@CatPlusPlus You're making me feel like a complete noob here. Never heard of any of those.
 
But boost is other... boost is like halfway standard :)
 
Which standard? ;)
 
There was one proposal of bigint lib for Boost, XInt or something.
It proved too slow AFAIR.
I can't believe I worked 8 hours today. It's like, 8 hours longer than I've ever worked in a single day.
 
@FredOverflow I mean when you use boost, you don't really feel that you're really outside the standard library - just ahead of time :)
@CatPlusPlus ha ha, Constitution Day in my country, no work :)
 
5:49 PM
I wish I was a kid because I'd have summer holidays now.
 
Just wait until you get really old @StackedCrooked then you get all day, every day off
 
Aah, I can't wait.
Hopefully they'll invent a magic potion by than that makes me fit like a teenager. That would be double the fun.
 
But if they do that then no one will have a reason to retire because they will still be able to work
 
@Collecter I hope it gets invented just after I retire.
 
alright
that works
 
5:54 PM
Then I'll stand outside your office licking ice cream, mocking you.
 
I would probably go steal your ice cream then
Mmmmmmm ice cream
 
Lol, if you can make up an excuse to your boss for leaving the office, that is. Ha!
Actually, we had ice-cream at work today. Somebody treated use because it was his birthday.
This kind of invalidates my previous statement.
Ok, I'll try to stop being annoying now.
 
I do not think I will mind to give myself permission to walk outside for a bit
 
@Collecter I'll tell your boss. And kick your ass.
 
@StackedCrooked
I was implying i am the boss
 
5:58 PM
And I'll spit on my ice-cream before you steal it.
Hah!
 
shave off the top layer of ice cream and it is good again
 
@Collecter ugh! you dog!
 
I am not at the moment, but I will get to be the boss one day
 
You can becoming a dog?
 

« first day (262 days earlier)      last day (4686 days later) »