[abseil] Fix missing #include <random> for std::uniform_int_distribution (#39522)

This commit is contained in:
therselman 2024-06-27 05:25:54 +02:00 committed by GitHub
parent d723b88bd6
commit 513ccfb2cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,29 @@
From c025a934b199d069510bb68ee552ae58a4394916 Mon Sep 17 00:00:00 2001
From: Derek Mauro <dmauro@google.com>
Date: Tue, 21 May 2024 09:57:36 -0700
Subject: [PATCH] Fix missing #include <random> for
std::uniform_int_distribution
Fixes #1676
PiperOrigin-RevId: 635840902
Change-Id: Ifc4099175f1c5f040f55a9f5a47fe0c996af79d1
---
absl/algorithm/container.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/absl/algorithm/container.h b/absl/algorithm/container.h
index c7bafae1..a2d126b7 100644
--- a/absl/algorithm/container.h
+++ b/absl/algorithm/container.h
@@ -44,6 +44,7 @@
#include <cassert>
#include <iterator>
#include <numeric>
+#include <random>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
--
2.44.0.windows.1

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
0001-revert-integer-to-string-conversion-optimizations.patch # Fix openvino MSVC compile error
0002-Fix-missing-include-random-for-std-uniform_int_distr.patch # Fix missing include for std::uniform_int_distribution
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -1,7 +1,7 @@
{
"name": "abseil",
"version": "20240116.2",
"port-version": 1,
"port-version": 2,
"description": [
"Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.",
"In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "26ec106886be2fb2bc0f35b0bda9a1d3d5f01717",
"version": "20240116.2",
"port-version": 2
},
{
"git-tree": "de728ac31037e511da4996c815903e6ac71e8fb9",
"version": "20240116.2",

View File

@ -18,7 +18,7 @@
},
"abseil": {
"baseline": "20240116.2",
"port-version": 1
"port-version": 2
},
"absent": {
"baseline": "0.3.1",