cfg.cpp - part of the work on c++11