DescriptionImprove singleton example by assuming implementation is outside base/
The error messages returned by the compiler are hard to understand and
most singleton implementations live outside base/.
Also adds an example for leaky singletons because it's not clear that
DefaultSingletonTraits must still be friended.
Review-Url: https://codereview.chromium.org/2741493002
Cr-Commit-Position: refs/heads/master@{#455931}
Committed: https://chromium.googlesource.com/chromium/src/+/961c9d662de83d9d27547c48576e9df6ccfb5146
Patch Set 1 #
Total comments: 3
Messages
Total messages: 12 (5 generated)
|