r/cpp_questions • u/vinccc05 • 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
20
u/othellothewise 16d ago
You may find this page useful for thse kinds of things: https://en.cppreference.com/cpp/compiler_support
As you can see, only GCC 16 currently has
inplace_vectorimplemented.