Maybe of your interest,
the following "review", bit old (2014)
http://geoawesomeness.com/learning-gis-programming-an-overview/ mentions
GRASS-GIS as being written in C++.
Would like to comment but have no Disqus account and log-in via Twitter
redirects to Disqus (!).
Nikos