Subject Archive for C++

An Object Oriented Approach to Threading in C++
Category: Programming December 8, 2010 Tags: , , , ,

Multithreading in C++ can be a daunting topic to approach. Not only is the subject matter confusing and filled with gotchas, but it can also be hard to know how to effectively implement threads in real code and real situations. In this tutorial I will describe an object oriented approach to dealing with threads that […] read on
How to use Boost.Function
Category: Programming December 8, 2010 Tags: , , , , ,

Specifying variables of function pointer type in standard C++ has a downright filthy syntax and rightly strikes confusion into the hearts of programmers everywhere. Boost.Function provides a different syntax which is far superior in every way. This tutorial shows how to use Boost.Function with examples of common tasks and covers all of the main features […] read on
How to Build Log4cxx From Source
Category: Programming December 8, 2010 Tags: , ,

Log4cxx is a hierarchical logging library for C++ based on the popular Log4j for Java. Both Log4cxx and Log4j are Apache community projects and are quite mature. Recently I wanted to integrate Log4cxx into a linux based project of mine and got stumped trying to build it from source. As it turns out the instructions […] read on