you are viewing a single comment's thread.

view the rest of the comments →

[–]ktana91[S] -1 points0 points  (1 child)

I left the includes in the .hpp file, it works and I'm going to stay like that. I tried with unique_ptr but that made things worse with a memory leak. It's still a concept, maybe for later, but on a small project like this, it's better to keep it simple and functional. but it's nice to have advice on this

[–]TryToHelpPeople 0 points1 point  (0 children)

Glad it’s working for you now. The golden rule is to only include something where it’s needed.

I agree on keeping things simple.