Open Behemyth opened 7 years ago
Headers should not be included when a forward declaration suffices. If an #include is used for just a signature such as
#include
void PushBack(const Dog$);
Dog* dog
and not as a storage requirement such as
Dog dog;
then the #include can be moved to the *.cpp file and a forward declaration used in its place class Dog;
*.cpp
class Dog;
Some changes by Ryan in PR #241 . There is more to be done, so I'm leaving the issues open.
Headers should not be included when a forward declaration suffices. If an
#include
is used for just a signature such asvoid PushBack(const Dog$);
Dog* dog
and not as a storage requirement such as
Dog dog;
then the
#include
can be moved to the*.cpp
file and a forward declaration used in its placeclass Dog;