This isn't a problem in practice because C++ developers are expected to know the rules of their language and respect them.
Being a C++ developer requires discipline, and that's why hiring is much more selective and specialized.
In the same way children are expected to respect fire :-P