Forward declaration of a typedef in C++ October 4, 2022 by Tarik You can do forward typedef. But to do typedef A B; you must first forward declare A: class A; typedef A B;