I guess in the examples I saw they just had a forward declaration and then the implementation below in one .cpp file - so I assumed the dec. would go in the header and the implementation in the .cpp. Guess I was wrong!
I guess in the examples I saw they just had a forward declaration and then the implementation below in one .cpp file - so I assumed the dec. would go in the header and the implementation in the .cpp. Guess I was wrong!
That's exactly what you do except for templates.
For non-template functions, you had the right idea. Templates are just weird.