Dreikblack Posted June 10, 2023 Share Posted June 10, 2023 I know how to do it in .c and .cpp classes with forward declaration but it does not work for component .hpp classes. I have one component having a second component member and i need a first component member for a second component. Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted June 10, 2023 Solution Share Posted June 10, 2023 A forward declaration should work, as long as you are creating the object as a pointer or shared pointer: class MyThing; Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Dreikblack Posted June 10, 2023 Author Share Posted June 10, 2023 For some reason it was not working in one of components but in another one it worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.