cpp binding of sproto