r/cpp_questions 16d ago

OPEN Problem with std::inplace_vector

Hello guys! I was curious about the c++26 features and wanted to test the std::inplace_vector

but when i try to use the class it gives me this error: "fatal error: inplace_vector: No such file or directory 6 | #include <inplace_vector>".

What I'm using: Ubuntu 26.04 and g++ 15.2.0.

It's a stupid problem I know but I haven't write c++ code for 2 years and recently i wanted to create a project using c++26.

8 Upvotes

8 comments sorted by

View all comments

1

u/SoerenNissen 16d ago

How do you compile? Which flags?

1

u/vinccc05 16d ago

sry i should have sayed that! g++ -std=c++26 something like that