Michael Hasselmann

C++ Template Poisoning

Today I was sick. At first I thought, "Ha, serves you right for eating dead animals!", but then I realized this weren't the usual kind of stomach problems. All of a sudden it struck me - I had a C++ Template Poisoning!

So what happened? I've been busy picking up C++ over the last weeks, mostly from reading books. When I tried out some examples I came across Class Templates, which really looked promising. Perhaps I was too confident with that, as I made the decision to poke at some Boost libaries. But what had I done - the horror! Suddenly I wasn't in the driver's seat of my application any more. Also, could it be that Boost is slightly overdesigned if I have to use a manipulator on my random generator, only to set a range?

I guess the best advise I got from my co-workers was that I should avoid Boost as long as possible, so that is surely going to help with my health, too!

Comments

No comments yet.

Post a Comment

Optional: Only needed, if you wish to subscribe.