« first day (385 days earlier)      last day (4565 days later) » 

user457812
12:31 AM
Mmm, pizza and cleavage
 
what could go wrong?
 
12:52 AM
Would anyone care to comment on this gentleman's question? I feel like I've overly monopolised the conversation, and a second opinion is direly needed.
 
you're basically right
he has no idea wtf he's talking about
 
Hehe :-) Thanks, at least I don't feel like I may have derailed him now.
 
what da fook™ he's yakkin™ aboot
 
I like your "no-nonsense" approach to giving people a realistic perspective on their ambitions :-)
Anyway, got to go sleep -- thanks again
 
no probs
 
 
1 hour later…
2:15 AM
@KerrekSB Yes, poor designs can and should be patched.
 
3:09 AM
^ Italian "torrone", a kind of nougat made with honey, nuts, sugar and whites of eggs
Given the photo above I'd like to have some.
Given the photos in the Wikipedia article I wouldn't want that...
Turrón (), torró ( ), or torrone (), or nougat is a confection, typically made of honey, sugar, and egg white, with toasted almonds or other nuts, and usually shaped into either a rectangular tablet or a round cake. It is frequently consumed as a traditional Christmas dessert in Spain and Italy. There are also some varieties in Latin America and the Philippines. In other countries it often appears, sometimes chocolate-coated, in a mixed box of chocolates. Recipe The 16th-century Manual de Mujeres ("Women's Handbook"), a handbook of recipes for cosmetics and some foodstuffs, has what is ...
 
3:45 AM
I just spent a few hours tweaking the column alignment of my test script output. I should not let this happen again.
 
@StackedCrooked Just look around you. Do you see anything that's purely bare-bones functional? No, you probably don't. We are victims of our sense of aesthetics. An inordinate amount of time & work is spent on making things look pleasing.
 
Yeah, but I have this weakness when it comes to aligning things.
Well, not in real-life, only on computers.
@AlfPSteinbach There must be an opportunity for making money in that statement.
 
I once read a story about an American woman who was used to flying in passenger planes, but got scared when she was placed in a military Hercules. You could see things. An what amazed me (I have flown with Herc) was that the author presumably meant that a Herc isn't prettied up inside, but if you think about it, it is, in all ways!
 
Women are like that.
^ That's quite a cool plane if you ask me.
 
it's bigger than it looks in that photo
 
3:52 AM
If it's used by the military then it probably has good quality engineering.
I like the big propellers.
@AlfPSteinbach If you click the photo it's really big.
 
Yeah, and you can see artwork everywhere on that plane, even though it's just a workhorse tool so to speak. Including a nice horse or whatever it is at the front.
 
4:09 AM
Yes it could have easily delivered "Little Boy" and "The Fat Man" in one go.
 
difficult to submit bug report to microsoft. one must log in to "windows live". i had to ask them to send me my password. who on Earth is actually using that? I can't imagine
jesus. they want me to fill in a public profile
Microsoft doesn't allow me to use my own name as display name. It's "already in use" they say. Hey nitwits, you just sent me a password reset!
Now it's "waiting for connect to Microsoft". They make it really really hard to file bug reports.
"The system has encountered an unexpected error. We apologize for the inconvenience. The issue will be addressed as quickly as possible."
 
4:25 AM
You have chosen a thorny path my friend.
 
it smells like the old runaround where you could get arbritrarily close to filing a bug report, by herculean efforts, only to have it err out at the last moment
 
It's like a rubik's cube where somebody swapped some of the color stickers. It has become unsolvable, but you can still get really close.
 
yes, i managed to file a report
but i am not sure that it is in the right place
my display name is incorrect because microsoft's system would not accept my name
and even the title is wrong because it was too frustrated so I wrote "typed" instead of "based" or whatever
 
^ Nice tune. Not too special. Just nice. Really nice
by Alf P. Steinbach, except MS doesn't accept it
So your username is actually "Alf P. Steinbach, except MS doesn't accept it"?
 
user457812
Anime hair is funny stuff.
 
4:41 AM
They have blue hair like it's the most normal thing in the world.
^ Women singing incomprehensible words, or chants, or something.
 
user457812
Blue hair that seems to gain velocity while standing still
 
@nil how can that be? If you stand still the hair will settle down, not gain velocity.
Unless you are sitting on a rocket.
 
user457812
I don't know, ask the animators
 
I will write a angry letter demanding for an explanation.
I also expect financial compensation.
 
user457812
Tell them I fully support this inquiry
 
4:47 AM
You bet.
I definitely will.
 
Thinking about it, now I wonder whether Visual C++ is right, and g++ erroneously accepts the code. I must ask SO question.
 
SO is actually a good product. Whether you like the dudes on the top or not.
 
user457812
That second song kind of reminds me of Niyaz. O_o
 
^ Another tune that is mainly composed of incomprehensible gibberish. Yet, it sounds quite cool imo.
I'm really starting to appreciate this soundtrack.
 
user457812
I really appreciate the Quest for Glory 4 soundtrack.
 
4:55 AM
0
Q: Is Visual C++ correct when it refuses this template-"dependent" based enum?

Alf P. SteinbachCode: #ifdef _MSC_VER # pragma warning( disable: 4480 ) // enum base as "nonstandard extension" #endif enum ShouldBeFine: char { hola }; enum Choice { a, b, c }; template< Choice c > struct Traits; template<> struct Traits<a> { typedef char Type; }; template<> s...

 
@nil no audio samples on that link?
 
user457812
You'd have to go into one of the CD directories on there.
 
user457812
The Digital sections have oggs
 
user457812
Others have midis
 
^ Anything good on this list?
 
user457812
4:57 AM
First one has most of the good songs in it.
 
Listening to the first one right now. I'm already liking it.
So far.
Looks like a fun game as well.
 
user457812
I liked 'em, though 4 was pretty buggy.
 
"nameless rites and unspeakable rituals"
I never knew about that game. Around 1994-1995 my dad bought a Mac and the game Myst was shipped along with it.
I managed to finish it after 6 months or so. Loved it.
It was one of my first immersive game experiences.
 
user457812
Well, I never beat Myst
 
user457812
Or Riven, for that matter.
 
5:08 AM
I never got far in Riven.
 
user457812
It made Myst look easy
 
I found Myst to be very linear, logically.
 
user457812
I'm also not sure if Uru could even be completed
 
user457812
Loved Uru anyway just because I got to explore stuff
 
Riven was really difficult to make sense of it all. And it had too many animations showing of their rollor-coaster-like 3D animations.
Uru?
 
user457812
5:10 AM
| genre = First-person adventure, Puzzle | modes = Single player, Multiplayer (cancelled) | platforms = Microsoft Windows | input = Mouse and keyboard }} Uru: Ages Beyond Myst is an adventure video game developed by Cyan Worlds and published by Ubisoft. Released in 2003, the title is the fourth game in the Myst canon. Departing from previous games of the franchise, Uru takes place in the modern era and allows players to customize their onscreen avatars. Players use their avatars to explore the abandoned city of an ancient race known as the D'ni, uncover story clues and solve puzzles. Cya...
 
Never seen this before.
 
user457812
Sort of massively multiplayer Myst, except the MMO part failed miserably
 
Seems to me that they are using the name "Cyan" to attract some old school fans. While actually none of the original developers remain, and a whole pack of money-hungry managers have entered the company. I don't know if this is the case, it's just a likely scenario.
 
user457812
That's the impression I got around that time.
 
user457812
Wasn't really a bad game, but it was different. Only part I really cared about was that I could wander around the world and see it from a lot of different angles
 
5:14 AM
My most fond gaming memories date from around 10 years ago. The Longest Journey, Age of Empires II, Starcraft, ...
Maybe I'm just growing old.
I haven't played much in the last few years. Dragon Age Origins being the sole exception.
 
user457812
Most of mine are stuff like the Quest adventure games, Baldur's Gate, Quake 1, Doom 1 and 2, Red Alert 2, etc.
 
I did play Baldurs Gate II. It was fun.
 
user457812
And hard. Very, very hard.
 
Wait, Baldurs Gate II, I remember now, I only played part of it.
I was confusing with another game for a sec.
 
user457812
Icewind Dale was basically the easy and fun game of that style
 
5:18 AM
Can u convert a pointer to a string and pass it as an argument to another program?
 
I recently tried playing Baldurs Gate II again (after having enjoyed Dragon Age so much). However, I found the dated graphics and gameplay to be a major hindrance. This attempt didn't last long..
 
user457812
What do you mean convert a pointer to a string?
 
@IntermediateHacker Sure.
*Can you convert a pointer to a string?* Yes.
*Can I pass a string to another program?* Yes.
 
If I then convert it back to a pointer in the other program and use it, will it work?
 
No way.
 
user457812
5:20 AM
I don't even know what he's asking D:
 
You can't access the address space of another process.
 
user457812
What if it's a subprocess?
 
oh, thanks. You saved me three hours of useless development. :)
 
Well, you can't do this since Windows 95. Older versions of Windows allowed this.
 
cpx
I think he meant pass it as argument as program.exe -arg1 -arg2
 
5:21 AM
I wonder why they disallowed it after win95.
@cpx exactly
 
@IntermediateHacker Ask StackOverflow. If this question has not been asked before then you
might get lots of upvotes.
 
Woah. I could use a little rep. thanks again. :D
 
user457812
Mmm, Quake 3 has good musics.
 
Quake 3 has mostly grunts.
That's what I remember of it.
Here's another one of those funky tunes:
I wonder if this is some of Yuki Kajiura's earlier work.
It's sounds so MIDI.
 
0
Q: Why can't you access the address space of another process since Windows 95?

IntermediateHackerSay I send a pointer as an argument to another program: program.exe -mypointer and try to use it in that program, it won't work. After some research (i.e asking at Lounge ) I found that since Windows 95, you can't access the address space of another program. In older versions of Windows it was...

 
5:33 AM
It it's 12:30 at night. Is that AM or PM?
Silly European me doesn't know.
 
Silly Asian me doesn't know either.
 
Morning
 
Silly Belgian like me doesn't know anything, except bragging about how we are supposed to have invented the french fries.
^ Quite cool.
 
20 years ago the title would have been: "Don't ever use a 4 MB struct"
And 30 ears ago they predicted the existence of hard drives capable of holding 1 GB. They would appear about 100 years from now.
I feel like spamming today.
^ Nice voice here.
@AlfPSteinbach are you an early riser, a late sleeper, or simply a night person? You seem to be awake every single moment of the day..
 
user457812
6:02 AM
 
user457812
This should've been Quake 3's soundtrack.
 
6:13 AM
0
A: Why can't you access the address space of another process since Windows 95?

Alf P. Steinbach16-bit Windows did some truly amazing feats of memory management, but it was hampered by being designed for a processor without memory management, namely the i8086 of the original PC (hardware folks may not that the original PC used an i8088, which was identical except for width of data bus). So...

@StackedCrooked maybe i'm a sleepless?
 
Maybe you're an android then?
There exists a very rare disease that prevents sleeping at all. It's a genetic condition that develops into adulthood. Once you get it you only have a few months to live. The body can't live without sleep it appears.
Beggars in Spain is a 1993 science fiction novel by Nancy Kress.
Would you recommend it?
 
oh yes. but the series loses much of its force in later books. also note that there's at least one book after the last one listed in wikipedia
 
I probably read through some spoilers on the Wikipedia page though.
One must be very careful to avoid that these days.
It's 7:30 AM. Should I try to go to sleep or just start the new day like most normal people?
 
6:31 AM
yes
 
6:41 AM
I see.
I just discovered a bad-add method for pony-tailing my hari with a piece of rope.
Fuck. I just came loose.
 
6:55 AM
@StackedCrooked Why bad-add? Did it overflow?
2
 
Are you mocking me? -- Said the unit-test to the developer.
@FredOverflow Nope. I meant to write bad ass. But apparently I'm very dysfunctional at the moment.
 
Dysfunctional, eh? I prescribe one hour of Haskell per day for two weeks.
 
I find this tune to be moderately uplifting.
@FredOverflow He, if I'm stateless, how will I ever move on?
Clone myself repeatedly??
 
You only clone the path to the root, not the entire tree.
 
I'm finding that Clojure has a stronger attraction power for me than Haskell.
 
7:03 AM
That's alright, you can have Clojure (I assume you meant Clojure), and I'll take Haskell.
 
Must be Steve Yegge's indoctrination from several years ago that is still sticking to my brains.
Dammit. I'm truly dysfunctional atm it appears.
 
@FredOverflow Who?
Bill and Melinda?
 
@StackedCrooked Us, because you have your Clojure, and I have my Haskell.
 
Ha, the static and the dynamic. Both in their purest forms.
It's a beautiful ...
I don't know how to continue the sentence. But it's beautiful.
 
7:06 AM
Haskell must be really popular in India, right? I mean because of the implicit currying all over the place.
@StackedCrooked ...thing?
 
Yeah and the cows.
Oh, no, that's object oriented programming.
@FredOverflow Yes!
 
Mathematics talked about objects long before OO entered the stage.
Numbers are objects, sets are objects, functions are objects... in the mathematical sense.
 
I recently learned about the mythical creature named "Kaboutermann".
 
@StackedCrooked Isnt' Pumuckl one of those?
 
@FredOverflow Huh?
Actually I learned about 'Kaboutermann' from the anime series named One Piece. In the series the creature appears at night and secretly repairs their boat.
 
7:10 AM
 
Actually, it's Klabautermann. There's goes my umpteenth typo of the day..
 
I thought yours was the international spelling :)
 
In Dutch we have the word "kabouter" which means the little men.
 
Food porn (moose steak with pears cooked in red wine and port wine based sauce): mammaskokebok.com/?p=3758
 
@FredOverflow Actually I should have just answered "Yeah." to your question and maintain the appearance of intelligence.
@AlfPSteinbach Do you mostly look at food. Or do you sometimes participate?
 
7:16 AM
@StackedCrooked i'm not sure. the food pictures thing is very much tied to stack overflow.
 
How about some food for thought instead? ;)
 
@AlfPSteinbach I don't see the connection..?
 
We want mental porn!
 
0
Q: Pointer Semantics: Type* object -vs- Type *object

Jonathan Henson Possible Duplicate: int* i; or int *i; or int * i; Ok, so this may seem trivial, but I have a young programmer that I am teaching our coding standards. One of our standards is for pointers to be written with the * immediately following the type instead of immediately preceding the obje...

Why do people keep asking this question?
 
7:18 AM
^ I don't understand how that works.
 
Here is some food for thought. I sometimes feel overwhelmed by things. By the extraordinary advanced of our technology. How you can just download any piece of music in a matter seconds. How all knowlegde from the past is gathered at my fingertips these days. However,
Am I am starting to wonder if this feeling of being overwhelmed is really triggered by external factors. Perhaps it's just a neurological thing. Perhaps I would have felt the same no matter what age I was born in.
Who knows?
 
@StackedCrooked The answer to the "how" is "technology".
 
@AlfPSteinbach The metal thing in the bottom right corner is a key. It is used to open old fashioned locks.
 
@StackedCrooked And where's the mutex?
 
@FredOverflow I don't understand your point here.
 
7:22 AM
@StackedCrooked You can download any piece of music because of advancements in technology.
 
@FredOverflow The mutex must be the keyhole then. I think you can only enter one key in a keyhole at the same time. So it's probably concurrency-safe.
@FredOverflow Ah, that clears it up then. I no longer need to feel in awe now. Thanks! :D
Just kidding :)
Partially :)
I think :$
Maybe...
Yeah.
I'm dying of embarrassment right now.
Leave me alone!
Say something man. Don't leave me hanging here.
Ok.
 
You can open your own private chat room and not let anyone in.
 
I'm cool now.
 
oh shit the milk brb
 
Hey, somebody posted chat messages under my name!
@FredOverflow You mean like Notepad.exe?
 
7:27 AM
@StackedCrooked What a lousy program. Does Windows 7 still have it?
 
You know, if a microphone-and-speaker-set ever wanted to chat with itself it would cause horrible feedback.
@FredOverflow Dunno. Probably.
 
@StackedCrooked Depends on the volume settings, doesn't it?
 
@FredOverflow yes, perhaps if they chatted really silently they would be able to pull it off.
It is however similar to riding your bicycle with the lights on at night during WWII.
Maybe that was a far-fetched analogy.
I don't know.
Maybe.
Yeah.
^ A convincing time troll.
 
1
A: Binary Search Tree Destructor

Loki AstariHow about automating it: class BinSearchTree { std::auto_ptr<tNode> left; std::auto_ptr<tNode> right; }; Now destruction is automatic. :-)

read my comment and smile!
 
@FredOverflow Ah. The hazards of auto_ptr.
 
7:34 AM
Are there any real world use cases for non-automatic auto_ptrs?
 
I remember when I first started to use auto_ptr in my company's code base. A colleage of mine noticed this and started mimicking me. However, he stored all pointers in a auto_ptr, even if he didn't have ownership of them.
 
One cannot facepalm at this. It's just too foreign.
 
Ownership is something not every developer understands.
 
@FredOverflow indeed. I would say that most developers are unfamiliar with the concept.
My theory is that good C++ programming is founded on thinking in terms of ownership and object lifetime.
And the obsession of binding object lifetime to scopes.
However, that is a little contradictory to the move semantics trend.
So I have to work a little.
 
7:40 AM
@StackedCrooked Move semantics is not a contradiction to scope-boundedness. It's just that some objects now steal from other objects shortly before they die.
 
Yeah. It''s not too hard to reconcile with my preconceived notions and obsession. Which is a good thing.
Do you think recursive mutexes should be avoided?
 
You mean reentrant mutexes?
 
I don't see why. Reentrant mutexes prevent a whole class of deadlocks.
 
Indeed.
 
7:44 AM
So why prevent them?
 
And I fee they are actually are quite compatible with C++'s way of doing things.
It's "scoped".
 
Doesn't every concurrent language have them?
 
@FredOverflow I read some posts that strongly recommended against using recursive mutexes. The reasoning was that you should only lock over very small segments of scope. And recursive locking promotes locking over too big areas, leading to single-threaded code on a multi-core platform.
 
Maybe, I don't have enough real world experience with concurrency.
 
@FredOverflow However, I don't really agree with this view. I think that this could apply to kernel development. But for application development it sometimes does make sense to lock over bigger areas of code. And to have nested locks.
I have a little experience. And the experience I have is that deadlocks caused by non-recursive mutexes are really sucky.
Actually, in my own personal projects I am still using non-recursive mutexes. In the production code at work I use recursive mutexes simply because I want to save my ass.
Also because the code at work is such a mess that I don't have a clear view over it. This makes recursive mutexes less risky.
However, this is probably a good motivation for using recursive mutexes from an academic point of view...
Anyway, I hope I'll gain more influence over the codebase in the future. I want to start with enabling -Wall and -Werror.
 
7:53 AM
@StackedCrooked Note that -Wall does not enable all warnings.
2
A: what is the purpose of Declaring b as pointer to array 10 of int

OmarOthmanThere's a difference actually. In int b[10], b is a pointer constant (which means it can be used to modify its underlying data but it can't be changed to point to something else). The pointer in int (*b)[10] on the other hand can be changed to point to something else (as well as being able to cha...

I don't like it when accepted answers contain false claims (such as "an array is a constant pointer" in this case).
 
8:18 AM
@FredOverflow I would like to compile with -Wextra but for some reason this fails to compile when using boost.
Pingfest.
 
Do you still use Boost now that we have C++11?
 
There has been a building popping up on the horizon. It can see it from my window.
 
Buildings don't just pop up. Or are you talking about errors in the build process, showing in the output window?
 
@FredOverflow I don't think we have C++11 yet. Compiler support is rather incomplete at the moment.
However, you have a point.
For my personal project I could upgrade to a compiler that has partial C++11 support and start replacing boost code with std code.
 
Well, not everything in Boost made it to C++11, maybe you need some of those?
 
8:23 AM
I'm using boost function, bind, thread, lexical cast, chrono, signals, smart pointers (especially scoped_ptr). Can't think of anything else atm.
Most of that is in C++11. You're right.
Actually all of it is.
Except for scoped_ptr.
 
I thought that the c++11 threading features are still a bit weak?
 
Weak?
Threads could be considered weak compared to processes.
 
yeah, thought I read that somewhere
 
But I guess that
is not what you
are talking about.
 
I mean the c++11 thread feature set in comparison to the boost thread features
 
8:28 AM
I'm not aware of that. I use boost thread, mutex, recursive mutex, scoped lock and condition. These classes will probably be ported to std.
One criticism I have heard on std threads comes from the guy who does the C++ concurrency videos‌​. He claims there is insufficient support for task-based concurrency.
But I don't think that was in boost either.
Actually I remember that Poco library claimed to have superior threading facilities compared to boost. It does support: *thread and thread synchronization classes, thread pool, work queues, active objects and activities, task management and timers*.
 
@StackedCrooked superseded by unique_ptr, I guess?
 
@FredOverflow I have been burned by the auto_ptr's emulation of move semantics a few times, and there are case where unique_ptr doesn't prevent this from happening. I'm a little hesitant towards using it when I can use a scoped_ptr instead.
On the other hand, the errors become apparent very quickly, so it's unlikely to lead to an unnoticed bug that will live on for a long time and suddenly manifest itself on a customer's computer.
 
Why? You will never get accidental moves with unique_ptr.
 
I had a class named "EvaluatedGameState". It's constructor looked like this: EvaluatedGameState(std::auto_ptr<GameState>, int score);. So far so good.
However, I can sometimes be a little distracted and then I do things like this: std::auto_ptr<GameState> gameState = CreateGameState(); EvaluatedGameState evalutedGameState(gameState, evaluate(*gameState));.
This is a real example.
Do you see it?
 
Unspecified evaluation order?
Anyway, this couldn't happen with unique_ptr unless you explicitly move it.
 
8:43 AM
Yeah. The auto_ptr was already invalidated when entered the evaluate function.
I'm calling evaluate(*gameState). Since I'm dereferencing I don't need to perform any move. Perhaps I do need to call std::move for the EvalutedGameState's first argument, I'm not sure. (Perhaps it's not necessary if the constructor takes the argument as an rvalue reference.)
If I do need to explicity call std::move for the constructor argument them I'm less likely to stupidly use it afterwards (it's as if the move word triggers an alarm bell for me).
 
@StackedCrooked If you want to pass a unique_ptr by value or by rvalue reference, the argument needs to be an rvalue.
And I don't see why you would want to pass a unique_ptr by lvalue reference.
 
You can see an example of the bug on line 31 of this diff. I then fixed it by replacing the auto_ptr with a raw pointer (see the right-hand-side of the diff) . I think this kind of bug can still occur with unique_ptr. Correct me if I'm wrong.
 
@StackedCrooked What does the constructor for EvaluatedGameState look like?
 
@FredOverflow check line 68 of diff this file. It belongs to the same commit.
It used to take an auto_ptr, but I replaced it with raw pointer.
As you can see in the diff.
 
Then new EvaluatedGameState(inGameState, inEvaluator->evaluate(*inGameState)) will not compile with unique_ptrs.
 
8:56 AM
Hm.. That's good to hear.
 
You cannot pass inGameState by value, because it's an lvalue, and unique_ptr has no copy constructor.
 
So I will need to type new EvaluatedGameState(std::move(inGameState), inEvaluator->evaluate(*inGameState)) instead?
 
Yes, and it will fail just like before, but that's your own fault really.
 
Which does make it less likely that I'll overlook the error.
I know it is my own fault.
 
All these smart pointers look a bit overkill for a Tetris clone btw.
 
8:58 AM
But I like to use defensive programming practices. Where the compiler prevents you from doing silly things. And this is a pole I keep blindly walking into. Causing my nose to bleed. Figuratively speaking.
 
No I meant, why do you use pointers at all. Why not just objects. Do you need runtime polymorphism everywhere?
 
@FredOverflow The funny thing is that I wanted to create a project that extensively used concurrency. And I chose Tetris. The result is a overengineered tetris.
@FredOverflow Good question. Well..
Keep in mind that this Tetris was developed in the first place for an online puzzle contest.
This one. I didn't win, but got an honorable mention.
Actually I should have been more assertive because my solution was better.
But to return to your question about why I'm using an auto_ptr for the EvaluatedGame constructor.
When you see the game on the screen you see the active block and the game state. These are two objects that don't have a pointer of reference to each other in my program. Both objects are kept by a enclosing "Game" object. Now, for this puzzle where I needed to create tree of gamestates I fancied the idea of creating a gamestate tree.
This led to the idea of making the GameState class immutible.
So the GameState class has a commit method which doesn't change the object. But returns a clone of itself with the modified gamestate. Now, I thought that it's a good idea for clone methods to return auto_ptr.
I have to admit that some of the choices were trial and error. I read somewhere that auto_ptr is useful for passing data between threads. With this idea in the back of my head I perhaps started to overuse the auto_ptr.
I probably lullabied you to sleep now.
Concerning unique_ptr I guess experience will tell if it's error-prone or not.
(And I wonder that if this ever happened to one of you guys if you'd be willing to admit having shot yourself in the foot with it.)
I think I'll update my codebase to use C++11 now.
My sleep deprivation probably shows in my writing.
 
9:19 AM
I have never used auto_ptr in my entire life :)
 
I started using it around August 2010.
My interest in auto_ptr actually started in 2008 on comp.lang.c++.moderated. (That was me asking the question.)
 
It certainly seems useful for factories. But I would use unique_ptr now, of course :)
 
Indeed, as Seungbeom Kim answered that auto_ptr is a sane approach for the return value of factory methods until we have unique_ptr.
I think the copy constructor of auto_ptr was futuristic because it emulated move semantics. However, due to the lack of language support it didn't work very well and in the end it seemed like a dumb design choice.
I wonder how I will ever explain move semantics to my colleages. Most of them hardly know about references.
I use scoped_ptr like crazy though.
~/svn/tetris-challenge $ find Tetris -name "*.h" -o -name "*.cpp" | xargs grep scoped_ptr | wc -l
      27
 

« first day (385 days earlier)      last day (4565 days later) »