We have this header file: headerA.h
#pragma once
#include <iostream>
void HeaderADefinedFunction()
{
std::could << "HeaderDefinedFunction called!\n";
}
Then inside sourceB.cpp
#include "headerA.h"
void FunctionB()
{
HeaderADefinedFunction();
}
And inside sourceC.cpp
#include "headerA.h"
void FunctionC()
{
HeaderADefinedFunction();
}
What are the negative aspects of defining the function HeaderADefinedFunction() in the header file itself. Would that definition be in an optimal form for link-time symbol resolution of that particular function?