diff options
Diffstat (limited to 'absl/strings')
-rw-r--r-- | absl/strings/str_cat_test.cc | 2 | ||||
-rw-r--r-- | absl/strings/string_view_test.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/absl/strings/str_cat_test.cc b/absl/strings/str_cat_test.cc index 58ab743ac13b..c86a5952fab0 100644 --- a/absl/strings/str_cat_test.cc +++ b/absl/strings/str_cat_test.cc @@ -206,6 +206,8 @@ struct Mallocator { typedef Mallocator<U> other; }; Mallocator() = default; + template <class U> + Mallocator(const Mallocator<U>&) {} // NOLINT(runtime/explicit) T* allocate(size_t n) { return static_cast<T*>(std::malloc(n * sizeof(T))); } void deallocate(T* p, size_t) { std::free(p); } diff --git a/absl/strings/string_view_test.cc b/absl/strings/string_view_test.cc index a26f6c3ae119..bb149d5c224c 100644 --- a/absl/strings/string_view_test.cc +++ b/absl/strings/string_view_test.cc @@ -50,6 +50,8 @@ struct Mallocator { typedef Mallocator<U> other; }; Mallocator() = default; + template <class U> + Mallocator(const Mallocator<U>&) {} // NOLINT(runtime/explicit) T* allocate(size_t n) { return static_cast<T*>(std::malloc(n * sizeof(T))); } void deallocate(T* p, size_t) { std::free(p); } |