mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #81 from justanotheranonymoususer/patch-1
Update CppCoreGuidelines.md
This commit is contained in:
commit
257aa9d6b7
|
@ -5651,7 +5651,7 @@ We can fix that problem by making ownership explicit:
|
||||||
class X2 {
|
class X2 {
|
||||||
// ...
|
// ...
|
||||||
public:
|
public:
|
||||||
owner<T> p; // OK: p is nowning
|
owner<T> p; // OK: p is owning
|
||||||
T* q; // OK: q is not owning
|
T* q; // OK: q is not owning
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user