An example of Go like structured typing in C++