File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7232,7 +7232,7 @@ We can fix that problem by making ownership explicit:
7232
7232
class X2 {
7233
7233
// ...
7234
7234
public:
7235
- owner<T> p; // OK: p is owning
7235
+ owner<T* > p; // OK: p is owning
7236
7236
T* q; // OK: q is not owning
7237
7237
};
7238
7238
@@ -7256,9 +7256,9 @@ Some interfaces cannot be simply annotated with `owner` because they need to rem
7256
7256
7257
7257
##### Note
7258
7258
7259
- `owner<T>` has no default semantics beyond `T*`. It can be used without changing any code using it and without affecting ABIs.
7259
+ `owner<T* >` has no default semantics beyond `T*`. It can be used without changing any code using it and without affecting ABIs.
7260
7260
It is simply a indicator to programmers and analysis tools.
7261
- For example, if an `owner<T>` is a member of a class, that class better have a destructor that `delete`s it.
7261
+ For example, if an `owner<T* >` is a member of a class, that class better have a destructor that `delete`s it.
7262
7262
7263
7263
##### Example, bad
7264
7264
You can’t perform that action at this time.
0 commit comments