Forward Declaration in Managed C++

Started by
0 comments, last by Teknofreek 18 years, 10 months ago
How would I go about forward declaring classes in managed C++? The unmanaged why doesn't seem to be working.
President: Video Game Development Club of UCIhttp://spirit.dos.uci.edu/vgdc
Advertisement
You do it the same way you declare the classes. For example:

// In Vector3.hnamespace Math{    public __gc class Vector3 : public IDisposable    {        // etc...    }}// In Matrix.hnamespace Math{    public __gc class Vector3; // Forward declaration    public __gc class Matrix : public IDisposable    {        // etc...    }}


Have fun!

-John
- John

This topic is closed to new replies.

Advertisement