[PR #1018] [CLOSED] Build error due to missing std::optional #1883

Closed
opened 2026-02-27 21:14:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1018
Author: @amilamad
Created: 9/22/2024
Status: Closed

Base: mainHead: main


📄 Description

  • When building on Ubuntu 24.04 with gcc 13 build failed with error

Projects/shadPS4_dev/src/core/libraries/save_data/save_backup.h:55:6: error: ‘optional’ in namespace ‘std’ does not name a template type
55 | std::optional PopLastEvent();
| ^~~~~~~~
Adding #include to src/core/libraries/save_data/save_backup.h fixed the issue


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1018 **Author:** [@amilamad](https://github.com/amilamad) **Created:** 9/22/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description - When building on Ubuntu 24.04 with gcc 13 build failed with error > Projects/shadPS4_dev/src/core/libraries/save_data/save_backup.h:55:6: error: ‘optional’ in namespace ‘std’ does not name a template type 55 | std::optional<BackupRequest> PopLastEvent(); | ^~~~~~~~ Adding #include <optional> to src/core/libraries/save_data/save_backup.h fixed the issue --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:14:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1883
No description provided.