Tag Archives: best practices

C++, ownership and shared_ptr

I’m a big fan of C++ shared_ptr — or I should rather say, I used to be a big fan. Lately I ran into some issues where the “shared ownership” model promoted by liberate use of shared_ptr started to make … Continue reading

Posted in Programming | Tagged , | 1 Comment

Review: PVS Studio

Disclaimer: The friendly folks at Viva64 have kindly provided me a review version of PVS Studio. I could test it completely on my own, on my machine, just as if I would have bought it. As I have been curious … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

Reporting compiler bugs

Once in a life-time, you run into a compiler bug … well, that used to be the case, before HLSL/GLSL/OpenCL/CUDA/C++0x whatever started to crop up and require new front and especially code generation back-ends. More often than not, people just … Continue reading

Posted in Programming | Tagged , , | 2 Comments

Avoid unsigned types by default

For some reason or another, unsigned types in C++ are heavily overused. I know that Java doesn’t have them, and many students who learn programming with Java think this is a really serious deficiency which they have to make up … Continue reading

Posted in Programming | Tagged , | 12 Comments