Except for some weird architectures, where C is supported, C++ is as well.
And if either GCC or clang are supported, they support safer languages than C and C++ on their standard collection of frontends.
How many architectures run Flatpak that don't have a compiler for any safer systems language? I don't think you run Flatpak on weird embedded chips, but maybe I'm mistaken.