commit | 4aa6964539f3b6aa365d0a19fbe6447fb7427356 | [log] [tgz] |
---|---|---|
author | pmonette <pmonette@chromium.org> | Fri Mar 10 09:50:49 2017 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 05:31:19 2020 +0900 |
tree | d34ac957c1e2fb6bd52ce042e327307959aa81df | |
parent | 14e17dba71356b5b4aa17298b0e5b3e4ae0f4525 [diff] |
Improve 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} CrOS-Libchrome-Original-Commit: 961c9d662de83d9d27547c48576e9df6ccfb5146