Skip to content

Update required C++ standard to C++20 for Social SDK 1.9#8365

Merged
markmandel merged 2 commits into
mainfrom
markm/c++version
May 20, 2026
Merged

Update required C++ standard to C++20 for Social SDK 1.9#8365
markmandel merged 2 commits into
mainfrom
markm/c++version

Conversation

@markmandel
Copy link
Copy Markdown
Contributor

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.

@markmandel markmandel requested a review from a team as a code owner May 20, 2026 20:17
@markmandel markmandel requested review from anthonydiscord and removed request for a team May 20, 2026 20:17
@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 20, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Discord 🟢 Ready View Preview May 20, 2026, 8:21 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

- Basic understanding of C++ and your platform's build system
- C++ Compiler and Build System that supports [C++17](https://en.cppreference.com/w/cpp/17) or greater.
- C++ Compiler and Build System that supports [C++20](https://en.cppreference.com/w/cpp/20) or greater.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a short parenthetical? like (SDK versions prior to 1.9 support C++17)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to make a new table on the platform compatibility page for engine/language support. had an offline chat, and it's going to be easier that way, and then guide can stick to just C++20, since it's a guide, not a reference.

More stuff coming to this PR shortly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And done! Had a chat with other devrel foiks, doing this properly with a reference of which engines and languages we support felt like the right call - and give us some space to be able to document changes over time.

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.
@markmandel markmandel merged commit 0833444 into main May 20, 2026
5 checks passed
@markmandel markmandel deleted the markm/c++version branch May 20, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants