hi
can i take the address of a non-member in C++ to use it e.g. in ptr_fun() ?
then:
can i take the address of a non-member in C++ to use it e.g. in ptr_fun() ?
Code:
ostream& operator<<(ostream& out, const X& x){
....
}
Code:
list<X> xs; for_each(xs.begin(), xs.end(), bind1st(ptr_fun(what_here??),cout));
Comment