mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[abseil] Fix missing #include <random> for std::uniform_int_distribution (#39522)
This commit is contained in:
parent
d723b88bd6
commit
513ccfb2cb
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "26ec106886be2fb2bc0f35b0bda9a1d3d5f01717",
|
||||
"version": "20240116.2",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "de728ac31037e511da4996c815903e6ac71e8fb9",
|
||||
"version": "20240116.2",
|
||||
|
@ -18,7 +18,7 @@
|
||||
},
|
||||
"abseil": {
|
||||
"baseline": "20240116.2",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"absent": {
|
||||
"baseline": "0.3.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user