[abseil] Fix missing #include <random> for std::uniform_int_distribution #39522
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please forgive me, but this is my first PR for vcpkg.
What I'm trying to do, is create a patch for a very simple known and fixed bug for
abseil
.This issue has already been fixed by this commit in the
abseil
repo:abseil/abseil-cpp@c025a93
I experienced the issue when compiling a Protobuf (protoc) generated
.pb.cc
file (on VS2022), there is an error:"\absl\algorithm\container.h(797,14): error C2039: 'uniform_int_distribution': is not a member of 'std'"
The issue is not actually in Protobuf, but in the
abseil
dependancy, and is resolved simply by including a missing file:#include <random>
I've tried my best to create a port and patch for
vcpkg
, I tried to follow every instruction, but I can't get pasterror: no version database entry for abseil at 20240116.2#2
. Even though I believe I've created theversions
file enty correctly. Maybe it's just my local setup.Thanks for your time.
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.