cpp and scala