Path: utzoo!attcan!uunet!fernwood!lia!jgro From: jgro@lia (Jeremy Grodberg) Newsgroups: comp.lang.c++ Subject: Re: operator& Message-ID: <1990Nov6.002221.3635@lia> Date: 6 Nov 90 00:22:21 GMT References: Reply-To: jgro@lia.com (Jeremy Grodberg) Lines: 16 In article fuchs@it.uka.de (Harald Fuchs) writes: () I need the real address of my X object (i.e. an X* () const { return &p->obj; } // This won't work try X* operator-> () const { return ::operator&(p->obj); } ::operator&() explicitly calls the global non-overloaded & operator. -- Jeremy Grodberg "I don't feel witty today. Don't bug me." jgro@lia.com