[concurrencpp] Fix error C2039: 'numeric_limits': is not a member of 'std' (#32121)

* [concurrencpp] Fix error C2039: 'numeric_limits': is not a member of 'std'

* format
This commit is contained in:
Cheney Wang 2023-06-22 08:38:04 +08:00 committed by GitHub
parent 2b9358ea52
commit 48f861d3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff --git a/include/concurrencpp/executors/constants.h b/include/concurrencpp/executors/constants.h
index c717831..3a3d700 100644
--- a/include/concurrencpp/executors/constants.h
+++ b/include/concurrencpp/executors/constants.h
@@ -2,6 +2,7 @@
#define CONCURRENCPP_EXECUTORS_CONSTS_H
#include <numeric>
+#include <limits>
namespace concurrencpp::details::consts {
inline const char* k_inline_executor_name = "concurrencpp::inline_executor";

View File

@ -1,11 +1,12 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO David-Haim/concurrencpp
REF v.${VERSION}
REF "v.${VERSION}"
SHA512 51e8ba898256165ef5173a098e804121ae0d1212b5d83e6356a34c72dc3d66849f7382e1f35f5ec34718425563faf1795675c6eeb5374dd660a65800e8318a1f
HEAD_REF master
PATCHES
fix-include-path.patch
fix-missing-limits.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "concurrencpp",
"version": "0.1.6",
"port-version": 1,
"description": "concurrencpp is a tasking library for C++ allowing developers to write highly concurrent applications easily and safely by using tasks, executors and coroutines.",
"homepage": "https://github.com/David-Haim/concurrencpp/",
"license": "MIT",

View File

@ -1694,7 +1694,7 @@
},
"concurrencpp": {
"baseline": "0.1.6",
"port-version": 0
"port-version": 1
},
"concurrentqueue": {
"baseline": "1.0.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "692f9ce2162c5dd6ee54170400c4df33aaec6b5d",
"version": "0.1.6",
"port-version": 1
},
{
"git-tree": "d4d183249579167e00a7717a088721716d66635b",
"version": "0.1.6",