Boost logo

Boost Users :

From: Darin Adler (darin_at_[hidden])
Date: 2001-12-01 11:29:07


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".

    -- Darin


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