[rappture] fix build with c++17 (#52210)

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2026-06-06 01:26:12 +02:00 committed by GitHub
parent 8cc2c328d0
commit 40e35a2cbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,15 @@
diff --git a/src/core/RpUnits.h b/src/core/RpUnits.h
index e697424..fb9b3b5 100644
--- a/src/core/RpUnits.h
+++ b/src/core/RpUnits.h
@@ -393,9 +393,7 @@ class RpUnits
return true;
}
- struct _key_compare:
- public
- std::binary_function<std::string,std::string,bool> {
+ struct _key_compare {
bool operator() ( const std::string& lhs,
const std::string& rhs ) const

View File

@ -12,6 +12,7 @@ vcpkg_extract_source_archive(
PATCHES
rappture.patch
include_functional.patch
fix_c++17.patch
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

View File

@ -1,7 +1,7 @@
{
"name": "rappture",
"version": "1.9",
"port-version": 4,
"port-version": 5,
"description": "Rappture is a toolkit supporting Rapid application infrastructure, making it quick and easy to develop powerful scientific applications.",
"license": null,
"dependencies": [

View File

@ -8646,7 +8646,7 @@
},
"rappture": {
"baseline": "1.9",
"port-version": 4
"port-version": 5
},
"raygui": {
"baseline": "4.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e5912ed2b7fd8365575c4bd9c6318e98ddebf8de",
"version": "1.9",
"port-version": 5
},
{
"git-tree": "31376dbc3c6b3f397f76819c46c05a653c47e1ce",
"version": "1.9",