From -358209923115646481
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,5cc796235bc9d4d8
X-Google-Attributes: gid109fba,public
X-Google-Thread: fc772,5cc796235bc9d4d8
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,5cc796235bc9d4d8
X-Google-Attributes: gidf78e5,public
From: rmacombe@aruba.u.arizona.edu (Robert J Macomber)
Subject: Re: Article on exceptions in January C++ Report
Date: 1998/03/03
Message-ID: <6dfc7l$3hl@netlab.cs.rpi.edu>#1/1
X-Deja-AN: 330295709
References: <6cjhbk$ru6@netlab.cs.rpi.edu> <6cu53k$918@netlab.cs.rpi.edu> <6d78m5$s4u@netlab.cs.rpi.edu> <6depnb$l9t@netlab.cs.rpi.edu>
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Original-Date: 2 Mar 1998 17:35:33 -0500
X-Approved-For-Group: herbs@cntc.com comp.lang.c++.moderated
Organization: The University of Arizona
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANPulY+EDnX0m9pzZAQHixgF+NK37cPzmwMzfxukKtn5HyAN5+5zml44F BKyUhJy9Hk6rBH+azRX3K5pUzyWV9HcW =gmh1
Newsgroups: comp.lang.c++.moderated,comp.std.c++,comp.lang.c++


In article <6depnb$l9t@netlab.cs.rpi.edu>,
Roger Glover  <roger.glover@mindspring.com> wrote:
>Is there a true "swapping" situation in which a bitwise swap of values
>does not suffice?  I cannot imagine such a situation!

Yes: if an object contains a pointer to one of its own data members, it
will break if it's swapped under this scheme.  (I do this frequently
when an object can contain an arbitrary amount of information, but that
info is *usually* small in size -- the pointer-to-data points to a
small buffer which is part of the object itself.)

-- 
			Rob Macomber
			 (rmacombe@u.arizona.edu)

      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



