From 898f819b007fa280716d6efece7f4c58fc4a2acc Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 24 Jul 2017 19:26:03 +0100 Subject: [PATCH] Add [Abrahams01] bibliography entry for exception-safety (#991) Link to it when talking about the strong and basic exception-safety guarantees. Add it to the dictionary. --- CppCoreGuidelines.md | 6 ++++-- scripts/hunspell/isocpp.dic | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ae8f7a0..144b414 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5658,7 +5658,7 @@ It is simple and efficient. If you want to optimize for rvalues, provide an over ##### Note -The `swap` implementation technique offers the [strong guarantee](???). +The `swap` implementation technique offers the [strong guarantee](#Abrahams01). ##### Example @@ -5687,7 +5687,7 @@ But what if you can get significantly better performance by not making a tempora return *this; } -By writing directly to the target elements, we will get only [the basic guarantee](#???) rather than the strong guarantee offered by the `swap` technique. Beware of [self-assignment](#Rc-copy-self). +By writing directly to the target elements, we will get only [the basic guarantee](#Abrahams01) rather than the strong guarantee offered by the `swap` technique. Beware of [self-assignment](#Rc-copy-self). **Alternatives**: If you think you need a `virtual` assignment operator, and understand why that's deeply problematic, don't call it `operator=`. Make it a named function like `virtual void assign(const Foo&)`. See [copy constructor vs. `clone()`](#Rc-copy-virtual). @@ -21361,6 +21361,8 @@ Alternatively, we will decide that no change is needed and delete the entry. # Bibliography +* + \[Abrahams01]: D. Abrahams. [Exception-Safety in Generic Components](http://www.boost.org/community/exception_safety.html). * \[Alexandrescu01]: A. Alexandrescu. Modern C++ Design (Addison-Wesley, 2001). * diff --git a/scripts/hunspell/isocpp.dic b/scripts/hunspell/isocpp.dic index 79348d8..272c320 100644 --- a/scripts/hunspell/isocpp.dic +++ b/scripts/hunspell/isocpp.dic @@ -23,6 +23,8 @@ ABA abi ABI ABIs +Abrahams +Abrahams01 abstr accessor ack