Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#ActualiMalc

Posted 22 December 2012 - 07:32 PM

I'm trying to use forward declarations so I don't have a whole bunch of #includes (it can slow down compile time, it's just a practice thing for me though) .
Sounds to me like you've had enough practice on how to do it, and now you could use some practice with when it's appropariate to use it.
This is not really an appropriate place to do it, and you certainly shouldn't be deleting and newing up a new one each time. At the very least, you'd use copy-assignment.

#1iMalc

Posted 22 December 2012 - 07:31 PM

I'm trying to use forward declarations so I don't have a whole bunch of #includes (it can slow down compile time, it's just a practice thing for me though) .
Sounds to me like you've had enough practice on how to do it, and now you could use some practice with when it's appropariate to use it.
This is not really an appropriate place to do it, and you certainly shouldn't be deleting and newing up a new one each time. At the very least, you'd use copy-assigment.

PARTNERS