Skip to content

Commit 0833444

Browse files
authored
Update required C++ standard to C++20 for Social SDK 1.9 (#8365)
* Update required C++ standard to C++20 for Social SDK 1.9 The Standalone C++ getting-started guide stated C++17 as the minimum, but as of SDK 1.9 the default target is C++20 on all platforms except PlayStation 4 / PS5 with SDK older than 13.000, which still uses C++17. Updates the prereq bullet, the CMakeLists.txt starter snippet, and adds an Info callout flagging the PS exception. * Add Game Engine and Language section to Platform Compatibility Documents minimum supported versions for Standalone C++ (C++20), Unity (2021.3), and Unreal Engine (5.5), with callouts for the PS4/PS5 C++17 carve-out and the pre-1.9 C++17 minimum. Removes the duplicate PS callout from the C++ getting-started guide now that it lives in the shared Platform Compatibility page.
1 parent ff40127 commit 0833444

2 files changed

Lines changed: 36 additions & 9 deletions

File tree

developers/discord-social-sdk/core-concepts/platform-compatibility.mdx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,31 @@ import SonyCallout from '/snippets/discord-social-sdk/callouts/sony.mdx';
99
You can find instructions on how to download the SDK for each platform in the [Getting Started](/developers/discord-social-sdk/getting-started) guide.
1010
</Info>
1111

12+
---
13+
14+
## Game Engine and Language
15+
16+
The Discord Social SDK supports the following game engines and language environments:
17+
18+
| Integration | Minimum Supported Version |
19+
|----------------|---------------------------|
20+
| Standalone C++ | C++20 |
21+
| Unity | 2021.3 |
22+
| Unreal Engine | 5.5 |
23+
24+
<Info>
25+
**PlayStation 4 / PS5 exception:** If you're targeting PlayStation 4, or PlayStation 5 with a PS5 SDK older than
26+
13.000, the Discord Social SDK still supports C++17. All other platforms require C++20.
27+
</Info>
28+
29+
<Info>
30+
Prior to Social SDK release 1.9, C++17 is the minimum supported version.
31+
</Info>
32+
33+
---
34+
35+
## Platforms
36+
1237
The Discord Social SDK is available for the following platforms:
1338

1439
| Platform | Minimum Supported Version | Support Level | Standalone C++ | Unreal Engine | Unity |
@@ -62,6 +87,7 @@ Configure authentication, explore features, and get started with setup:
6287

6388
## Change Log
6489

65-
| Date | Changes |
66-
|---------------|-----------------|
67-
| July 21, 2025 | initial release |
90+
| Date | Changes |
91+
|---------------|-----------------------------------------|
92+
| May 20, 2026 | Added Game Engine and Language section. |
93+
| July 21, 2025 | initial release |

developers/discord-social-sdk/getting-started/using-c++.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This guide will walk you through integrating the Discord Social SDK into a new s
2323
We are going to make a simple C++ console application for this guide. Make sure you have the following prerequisites:
2424

2525
- Basic understanding of C++ and your platform's build system
26-
- C++ Compiler and Build System that supports [C++17](https://en.cppreference.com/w/cpp/17) or greater.
26+
- C++ Compiler and Build System that supports [C++20](https://en.cppreference.com/w/cpp/20) or greater.
2727
- A network connection that can access Discord's API endpoints.
2828

2929
Let's walk through the steps in detail.
@@ -85,7 +85,7 @@ Add the following contents to the `CMakeLists.txt` file to set up the Social SDK
8585
cmake_minimum_required(VERSION 3.10)
8686
project(DiscordSDKExample)
8787
88-
set(CMAKE_CXX_STANDARD 17)
88+
set(CMAKE_CXX_STANDARD 20)
8989
set(CMAKE_CXX_STANDARD_REQUIRED True)
9090
9191
add_executable(DiscordSDKExample main.cpp)
@@ -972,9 +972,10 @@ import {InboxIcon} from '/snippets/icons/InboxIcon.jsx'
972972
973973
## Change Log
974974
975-
| Date | Changes |
976-
|----------------|-----------------|
977-
| March 17, 2025 | initial release |
975+
| Date | Changes |
976+
|----------------|---------------------------------------------------------|
977+
| May 20, 2026 | Updated required C++ standard to C++20 with 1.9 release |
978+
| March 17, 2025 | initial release |
978979
979980
{/* Autogenerated Reference Links */}
980981
[`Activity`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#ae793d9adbe16fef402b859ba02bee682
@@ -984,4 +985,4 @@ import {InboxIcon} from '/snippets/icons/InboxIcon.jsx'
984985
[`Client::GetDefaultPresenceScopes`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a7648bd1d2f7d9a86ebd0edb8bef12b5c
985986
[`Client::GetRelationships`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad481849835cd570f0e03adafcf90125d
986987
[`Client::UpdateToken`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a606b32cef7796f7fb91c2497bc31afc4
987-
[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29
988+
[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29

0 commit comments

Comments
 (0)