The problem is that the current set of portability targets (https://www.postgresql.org/docs/devel/static/supported-platf...) doesn't support a lot of common ground WRT c++ support. Otherwise I (and some others involved in the project) would have started to gently push in that direction.