commit | f5922354cafc8fe019ffb0bcff4b1e4d9a1ccf66 | [log] [tgz] |
---|---|---|
author | jdoerrie <jdoerrie@chromium.org> | Wed Jan 03 18:13:45 2018 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 08:08:57 2020 +0900 |
tree | df9b0958356899e3196141e8cf25a62f82d81ceb | |
parent | db27a4879582c97cffc0ef5f70735b6013d51e7d [diff] |
[base] Support base::Optional from std::initializer_list Chromium allowed std::initializer_list soon after base::Optional was added to the codebase [1,2], rendering the top level comment incorrect. This change introduces appropriate overloads for the construcor, emplace() and make_optional(). [1] https://crrev.com/53f6b258355ce36752ea7a8dcf8953560b5be818 [2] https://crrev.com/0fcb776029fb1380c8e8c9d4cbdcaf7a217ddb5c Bug: 521269 Change-Id: Iba10136c8ff84d4aa1f77148f8dc238db5c1be4c Reviewed-on: https://chromium-review.googlesource.com/840008 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#526668} CrOS-Libchrome-Original-Commit: b6e6c75dc00feb1d2bb24be9e1eab47716567286