1 Dec
2001
1 Dec
'01
5:22 p.m.
On Sat, 1 Dec 2001, Darin Adler wrote:
On 12/1/01 4:09 AM, "Patrick Guio"
wrote: I cannot get this compiled with g++ v 2.95 friend ostream& operator<<(ostream &os, const any &rhs) { return os << *any_cast<bool>(rhs); }
What's the intent of using the word "friend" here? I think that might be the problem. You can declare this function without "friend".
I have tried without the friend declaration but it does not help.... Anyway, can you think of any general solution, I mean without specifying a list of ValueType ? Sincerely, Patrick