update c++ example potential

There were several changes made to the c++ backed that were not
reflected in the example