From aad33fefaa8f744d71ce747a53717b835bdf8e84 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 1 Oct 2019 13:53:57 -0700 Subject: Export of internal Abseil changes -- fb57c2d3598c81779c1bcd43c61b5abe748159c1 by Mark Barolak : Fix a typo in string_view.h PiperOrigin-RevId: 272287080 -- 69ac5819b786e50ec4c3e80847b868feb4ed94ca by Abseil Team : Fix -Wmicrosoft-template on clang-cl. PiperOrigin-RevId: 272260629 GitOrigin-RevId: fb57c2d3598c81779c1bcd43c61b5abe748159c1 Change-Id: Ib5b4486f6a991b340e640b0353fc89cae1100b14 --- absl/flags/flag.h | 4 ++-- absl/strings/string_view.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'absl') diff --git a/absl/flags/flag.h b/absl/flags/flag.h index 881f8502ef01..86ad59dd9f16 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 + template inline bool IsOfType() const { - return GetImpl()->IsOftype(); + return GetImpl()->template IsOfType(); } 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 841570b6713e..82344eb246b3 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, 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()) {} -- cgit 1.4.1