I asked myself this same question a while ago for the same reasons, but I never figured it out. I think the typedef isn't happy with an incomplete type, and you can't get a reference counting pointer without ending up including the whole deal behind it since it needs the incrementing and decrementing pointers in the target class. I'm not saying I think it can't be done and I do think it'd be a good idea, but I couldn't get it to work with a low to moderate amount of arm twisting.
Gabe Ali Saidi wrote: > Is there a way to forward declare a typedef? We used PacketPtr and > RequestPtr all over the place in header files which requires including > packet.hh and request.hh. However, in many cases the only reason we > need to include the header files is because of the typedef. > > Ali > > _______________________________________________ > m5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
