There are many ways to do function-call tracing in C++, where the simplest method is to just print “Entering function X” when entering the function, and right before returning print “Leaving function X”. It’s a lot of work though, especially if the function have multiple return statements. One solution to the problem above is to …
Category Archives: Programming
I see a Ghost
Some time ago I sponsored a Kickstarter campaign for a blogging publishing tool named Ghost. (The Ghost kickstarter.) I got a pre-release up and going, and have started to write a little in it. Very little in fact, just two posts really, with one describing how I got Ghost up and running, and one describing …
Using CMake to check for C++11 features
I recently changed to CMake for a project of mine, a C++ project which uses C++11. To see some examples:
Benchmarking C++ container iteration
In this stackoverflow question I made a point that iterating over a std::vector and a std::list would not be of any noticeable difference. After someone said that it is indeed noticeable, I decided to make a small benchmark to try it out. [Note: This post has been edited with a new conclusion.]