> 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.
There is no way to forward declare a typedef, though you can just define the typedef twice. We could create a file like src/mem/forward.hh and stick the few typedefs that we need in it. iosfwd from the standard library is an example of this sort of file. Nate _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
