summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2019-10-01 13:53:57 -0700
committerGravatar CJ Johnson <johnsoncj@google.com>2019-10-02 13:50:28 -0400
commitaad33fefaa8f744d71ce747a53717b835bdf8e84 (patch)
treeddf487bd6b0818c4cfab411d5f9bfcea3aa5021a /absl
parent8fe7214fe2d7a45ecc4d85f6a524c6b1532426de (diff)
Export of internal Abseil changes
-- fb57c2d3598c81779c1bcd43c61b5abe748159c1 by Mark Barolak <mbar@google.com>: Fix a typo in string_view.h PiperOrigin-RevId: 272287080 -- 69ac5819b786e50ec4c3e80847b868feb4ed94ca by Abseil Team <absl-team@google.com>: Fix -Wmicrosoft-template on clang-cl. PiperOrigin-RevId: 272260629 GitOrigin-RevId: fb57c2d3598c81779c1bcd43c61b5abe748159c1 Change-Id: Ib5b4486f6a991b340e640b0353fc89cae1100b14
Diffstat (limited to 'absl')
-rw-r--r--absl/flags/flag.h4
-rw-r--r--absl/strings/string_view.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/absl/flags/flag.h b/absl/flags/flag.h
index 881f8502..86ad59dd 100644
--- a/absl/flags/flag.h
+++ b/absl/flags/flag.h
@@ -134,9 +134,9 @@ class Flag {
bool InvokeValidator(const void* value) const {
return GetImpl()->InvokeValidator(value);
}
- template <typename T>
+ template <typename T1>
inline bool IsOfType() const {
- return GetImpl()->IsOftype<T>();
+ return GetImpl()->template IsOfType<T1>();
}
T Get() const { return GetImpl()->Get(); }
bool AtomicGet(T* v) const { return GetImpl()->AtomicGet(v); }
diff --git a/absl/strings/string_view.h b/absl/strings/string_view.h
index 841570b6..82344eb2 100644
--- a/absl/strings/string_view.h
+++ b/absl/strings/string_view.h
@@ -168,7 +168,7 @@ class string_view {
string_view( // NOLINT(runtime/explicit)
const std::basic_string<char, std::char_traits<char>, Allocator>&
str) noexcept
- // This is implement in terms of `string_view(p, n)` so `str.size()`
+ // This is implemented in terms of `string_view(p, n)` so `str.size()`
// doesn't need to be reevaluated after `ptr_` is set.
: string_view(str.data(), str.size()) {}