C++ dot operators how to convert to arrow operators