From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-ArrivalTime: 2003-06-20 02:36:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!usc.edu!rpi!not-for-mail From: Hyman Rosen Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 20 Jun 2003 05:38:59 -0400 Organization: unknown Sender: cppmods@netlab.cs.rpi.edu Message-ID: References: NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Fri, 20 Jun 2003 01:59:12 GMT X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPvLWKkHMCo9UcraBAQFIWQH/TPCo5F16xGmZvKcZv73wP9CCynn3XhBu OdZ7KnlA4zoY98BFIAjdWu4nviajznDLixfEYt1f1rdfxnPXmmnR/g== =mB7q Xref: archiver1.google.com comp.lang.ada:39486 comp.lang.c++.moderated:68781 Date: 2003-06-20T05:38:59-04:00 List-Id: tmoran@acm.org wrote: > What if the object is on a linked list with back pointers so that > after the swap the pointers are wrong? Or if it just contains pointers > to internal parts of itself? It is the job of the creator of the class to decide whether swap is appropriate for that class, and if so, what that means, and how to do it correctly. [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]