summaryrefslogtreecommitdiff
path: root/base/optional.h
diff options
context:
space:
mode:
authorjustincohen <justincohen@chromium.org>2016-10-28 11:25:11 +0900
committerQijiang Fan <fqj@google.com>2020-06-05 04:31:15 +0900
commitad87d2e77c89ce131151321c2a9648c6fbdbc314 (patch)
tree2bf17e1cbebe38e6eace3b6304cd927915f9fef5 /base/optional.h
parent6a324a31e19d3ba711a8c5eec979b31a3e10c8bb (diff)
downloadlibchrome-ad87d2e77c89ce131151321c2a9648c6fbdbc314.tar.gz
Replace =default with an empty constructor in Optional.
This CL is to workaround a clang bug occurring when building optional_unittests.cc for Chrome iOS. BUG=659734 Review-Url: https://codereview.chromium.org/2454883003 Cr-Commit-Position: refs/heads/master@{#428255} CrOS-Libchrome-Original-Commit: b869ed9a6cf6193b7689586b5ba6851b73f3a7ed
Diffstat (limited to 'base/optional.h')
-rw-r--r--base/optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/optional.h b/base/optional.h
index 17b3812b5a..cf65ad7dac 100644
--- a/base/optional.h
+++ b/base/optional.h
@@ -120,7 +120,7 @@ class Optional {
public:
using value_type = T;
- constexpr Optional() = default;
+ constexpr Optional() {}
constexpr Optional(base::nullopt_t) {}