Forward declaration of nested types/classes in C++ October 10, 2022 by Tarik You can’t do it, it’s a hole in the C++ language. You’ll have to un-nest at least one of the nested classes.