What happens if member functions of a class in a header file are implemented in two cpp files which are both compiled by the compiler? I mean, lets say I have this code:
//header file A.hpp
class A
{
public:
int funcA();
}
//implementation file A1.cpp
#include "A.hpp"
int A::funcA(){/* whatever*/}
//implementation file A2.cpp
#include "A.hpp"
int A::funcA(){/* whatever*/}
Will the compiler trigger an error?