Fix build for AppleClang 11 (#9684) (#9693)

This commit is contained in:
Philip Hyunsu Cho
2023-10-18 12:27:21 -07:00
committed by GitHub
parent 5d1bcde719
commit 3b86260b50
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ class RefResourceView {
[[nodiscard]] size_type size() const { return size_; } // NOLINT
[[nodiscard]] size_type size_bytes() const { // NOLINT
return Span{data(), size()}.size_bytes();
return Span<const value_type>{data(), size()}.size_bytes();
}
[[nodiscard]] value_type* data() { return ptr_; }; // NOLINT
[[nodiscard]] value_type const* data() const { return ptr_; }; // NOLINT