Command pattern creation in C++11