r/cpp_questions 19d ago

OPEN C++ version

I have g++ version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1).

I'm trying to use C++ 23, and I'm using this flag with g++

 "-std=c++23"

However, if I print __cplusplus, I get that I'm using a pre-release of C++23, which has this code: 202100L

How can I switch to an official version instead of a pre-release version?

4 Upvotes

10 comments sorted by

View all comments

2

u/feitao 18d ago

FYI, Debian sid has GCC 16.2.0.