Yes, you have accurately recreated the scenario. It is against our code standard to have a function definition in a header file. An alternate solution is to move the declaration of foo into the same file as it is called as done in your first reply. This is not preferable in order to preserve code modularity. Is there another solution?
↧