Hi Christian -- Sorry about the delay. The patch is based on PG version 9.5.3.
The commit history of the repo should give a high-level idea of the changes
required in PG to support compilation by a C++ compiler. I presume that
Peter's patch would be easier to integrate into PG. In any case, I would be
very glad to see PostgreSQL support C++.
Regards.