C++ does not depend on the os (realtime or not) it depends on the available resources. C is often use instead of C++ because the size of the executable is far smaller.
There is no real reason not to write a RTOS in C++. The language itself only has some runtime requirements that would need to be worked around (new, delete, run-time type id, exception handling and the standard libraries).