|
Boost Users : |
From: Patrick Guio (patrick.guio_at_[hidden])
Date: 2001-12-01 12:22:48
On Sat, 1 Dec 2001, Darin Adler wrote:
> On 12/1/01 4:09 AM, "Patrick Guio" <patrick.guio_at_[hidden]> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net