cpp: copy across sml to view model transformer