Update C++ struct