optional: that is not a mistake off course, but I would provide getters & setters rather, from C++ style POV direct access to the data member is possible for C-like POD structures which is not the case here.