support primitive getters/setters in c++