string_util: Disambiguate base::empty()
../../base/strings/string_util.cc(930,7): error: call to 'empty' is ambiguous if (empty(parts)) ^~~~~ ../../base/strings/string_util.cc(959,10): note: in instantiation of function template specialization 'base::JoinStringT<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, std::__1::basic_string<char> >' requested here return JoinStringT(parts, separator); ^ C:\Google\chromium\src\out\release\..\..\buildtools\third_party\libc++\trunk\include\iterator(1899,16): note: candidate function [with _Cont = std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >] constexpr auto empty(const _Cont& __c) ^ ../..\base/stl_util.h(102,16): note: candidate function [with Container = std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >] constexpr auto empty(const Container& c) -> decltype(c.empty()) { ^ Bug: 752720 Change-Id: I4382b78e772743976cd0bd3682f81c64788c9bb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089762 Auto-Submit: Raul Tambre <raul@tambre.ee> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#747492}
Showing
Please register or sign in to comment