I ran into a circular dependency problem in a template class. There is an example code:
template <typename T> struct A { typedef typename T::CD;
When I try to create an instance of B, I get a compiler error: "C" is not a member of "B" (MSVC) or "Invalid use of an incomplete type" struct B "(GCC).
What is the best way to modify a pattern to make it work?
Loom
source share