aboutsummaryrefslogtreecommitdiff
path: root/doc/developer-notes.md
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-09-21 11:03:21 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-09-21 11:03:21 +0200
commitb6718e373ed425fa2440ddd8f1b05c76b782dc2b (patch)
tree4e710e94ee3946bac22b1932d3b982102a24155f /doc/developer-notes.md
parent8f464549c46db2954d7b64d1feb200eb35f2e7e8 (diff)
tests: Use MakeUnique to construct objects owned by unique_ptrs
Diffstat (limited to 'doc/developer-notes.md')
-rw-r--r--doc/developer-notes.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md
index da8384c537..bdb8d7dbae 100644
--- a/doc/developer-notes.md
+++ b/doc/developer-notes.md
@@ -439,6 +439,11 @@ General C++
- *Rationale*: This avoids memory and resource leaks, and ensures exception safety
+- Use `MakeUnique()` to construct objects owned by `unique_ptr`s
+
+ - *Rationale*: `MakeUnique` is concise and ensures exception safety in complex expressions.
+ `MakeUnique` is a temporary project local implementation of `std::make_unique` (C++14).
+
C++ data structures
--------------------