S
siddhu
Dear experts,
As far as I understood the ADL concept things shoul work in the
followin way.
I have a global ostream operator defined as
//ostreamtest.cpp
#include<iostream>
using namespace std;
ostream& operator<<(ostream& out,const string& str)
{
out<<"in ostream"<<endl;
out<<str.c_str()<<endl;
return out;
}
int main()
{
}
As far as I understood the ADL concept things shoul work in the
followin way.
I have a global ostream operator defined as
//ostreamtest.cpp
#include<iostream>
using namespace std;
ostream& operator<<(ostream& out,const string& str)
{
out<<"in ostream"<<endl;
out<<str.c_str()<<endl;
return out;
}
int main()
{
}