Forward Declaration in Managed C++
How would I go about forward declaring classes in managed C++? The unmanaged why doesn't seem to be working.
You do it the same way you declare the classes. For example:
Have fun!
-John
// 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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement