Is it possible to install g++ on CentOS without root?
You could use EasyBuild, which will allow you to very easily install a particular GCC version without requiring root, see http://hpcugent.github.com/easybuild .
Disclaimer: I'm an EasyBuild developer.