Example codes for Boost in C++