[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] Re: use of std::swap in gpgme++
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2011-05-27 16:20:31
Message-ID: 1570550.UhpyhjjnMJ () freedom
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday, May 27, 2011 18:10:39 Frank Osterfeld wrote:
> That's the copy-and-swap idiom, see e.g. [1] (I know it from [2]).
> It makes the assignment exception-safe (std::swap must not throw).
yes, familiar with this, but didn't notice that the classes are not taking the
rhs by reference and so creating an implicit temporary copy. meh.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
["signature.asc" (application/pgp-signature)]
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic