Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Miles Bader Newsgroups: comp.lang.c++ Subject: Re: Persisting a structure: Valgrind errors Date: Wed, 08 Jun 2011 14:43:35 +0900 Organization: NEC Electronics Lines: 14 Message-ID: References: <4deb1ab9$0$2827$7b1e8fa0@news.nbl.fi> <4deb1e72$0$18240$4fafbaef@reader2.news.tin.it> <4deb5777$0$38647$4fafbaef@reader1.news.tin.it> <4dedc325$0$2829$7b1e8fa0@news.nbl.fi> <0cbab348-81be-48ee-9645-9233704f63ce@z15g2000prn.googlegroups.com> <4dede409$0$2876$7b1e8fa0@news.nbl.fi> Mime-Version: 1.0 Content-Type: text/plain X-Trace: individual.net nDc3y6WKSingcsIzZ2o4gAbsA7CDxGqUfhKInK3LOvFL4c7KXY Cancel-Lock: sha1:merT8VeQ/zmaKBhKGdnU+AvLP2o= sha1:Vct/jzKNEingspS0pQAiEQYhMps= System-Type: x86_64-unknown-linux-gnu Blat: Foop Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:6391 Juha Nieminen writes: > Since you used an explicit cast to void*, which would be unnecessary if > 'r' would have been a pointer That's true in C, but not in C++. C++ doesn't implicitly convert to/from void*. -Miles -- On a bad day, I see brewers still talking as though all beer were consumed in the pub, by the pint -- by insatiably thirsty Yorkshire steelworkers who have in reality long ago sought work as striptease artists. [Michael Jackson]