So I have this code written by myself but taken from other example codes...
class A{
    friend std::ostream& operator<< (std::ostream& out, A& a);
    // Constructors, destructor, and variables have been declared
    // and initialized and all good.
}
std::ostream& operator<< (std::ostream& out, A& a){
    out << " this gets written " << endl; // it doesn't get executed
    return out;
}
int main(){
    A *_a = new A();
    return 0;
}
And well, this is just not printing in the console " this gets written "
 
     
    