C++ boost library example (mean)