Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[abseil] Update to the latest and fix link failure error using StrCat #9367

Merged
merged 3 commits into from
Dec 23, 2019

Conversation

NancyLi1013
Copy link
Contributor

@NancyLi1013 NancyLi1013 commented Dec 19, 2019

When using StrCat function, passing different arguments(less or more than 4), if we use different cxx versions, which will cause different test results.

Since StrCat overload calls absl::strings_internal::CatPieces, which takes a single std::initializer_list<absl::string_view> parameter. So if Abseil is being compiled with a different C++ version than the code calling StrCat, (which it sounds like is the case,) then this error makes sense: some code is expecting CatPieces(std::initializer_list<absl::string_view>) to exist while other code is expecting CatPieces(std::initializer_list<std::string_view>) to exist, but str_cat.cc only defined one of them.

As the maintainer for Abseil proposed, we can define ABSL_OPTION_USE_STD_STRING_VIEW as 0 to fix this issue.

ABSL_OPTION_USE_STD_STRING_VIEW exists in absl/base/options.h that introduced in recent commits. So I also update abseil to the latest commit to solve this issue.

Related issue:#9142
abseil-cpp/issues/570

Note: No features need to test.

@NancyLi1013 NancyLi1013 added the info:internal This PR or Issue was filed by the vcpkg team. label Dec 19, 2019
@NancyLi1013 NancyLi1013 marked this pull request as ready for review December 20, 2019 01:22
@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Dec 20, 2019
@ras0219-msft
Copy link
Contributor

/azp run

@dan-shaw dan-shaw merged commit 6723668 into microsoft:master Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants