const/immutable member functions

Trass3r un at known.com
Mon Jan 24 05:56:49 PST 2011


class F
{
const Foo bar();
}

Isn't this ambiguous? "returns a const Foo object" vs. "is a const
member function that returns a Foo object"?


More information about the Digitalmars-d mailing list