R
Rene Ivon Shamberger
As I would normally '#include' the header files to a main.cpp I have noticed that I need to '#include' the header and source file when I there is a template in those files. Is this the normal for C++?
Example of normal include
// with out a function template
#include "my_file.hpp"
void main(){}
Example of abnormal include
//With function template
#include "my_file.hpp"
#include "my_file.cpp"
void main(){}
TIA
TIA
Example of normal include
// with out a function template
#include "my_file.hpp"
void main(){}
Example of abnormal include
//With function template
#include "my_file.hpp"
#include "my_file.cpp"
void main(){}
TIA
TIA