Path: utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcupt1!thomasw From: thomasw@hpcupt1.HP.COM (Thomas Wang) Newsgroups: comp.lang.c++ Subject: Re: detecting writes Message-ID: <7050026@hpcupt1.HP.COM> Date: 25 Jul 90 22:56:34 GMT References: <21007@duke.cs.duke.edu> Organization: Hewlett Packard, Cupertino Lines: 9 Your problem is that the [] operator is defined as returning a reference. Change it to return a normal object, then add a void put_at(int, array_element_type&); -Thomas Wang (Everything is an object.) wang@hpdmsjlm.cup.hp.com thomasw@hpcupt1.cup.hp.com