Simple C++ utilities