Qt 6.0: error: no template named 'auto_ptr' in namespace 'std'. Why?
-
Hello all!
I am trying to build simple application with Qt 6.0 for MacOS and got this error:
error: no template named 'auto_ptr' in namespace 'std'
Why is that?
For Qt 5.15.2 all is working perfectly.
This application contain Boost. Is there any way to use C++11 in Qt 6.0? -
std::auto_ptr was deprecated with c++11 and removed with c++17. So it looks like you're compiling with c++17. And I'm pretty sure boost removed this a long time ago so update your boost libs.
-
@Christian-Ehrlicher I am not a very-boost person. Do you know which parameter should be supplied for building C++17? For now I've got fail in building boost for C++17. I am using Boost 1.62.0 I haven't found any option to build it with C++17. Only Boost 1.68.0 and higher can be built with C++17.
-
@bogong said in Qt 6.0: error: no template named 'auto_ptr' in namespace 'std'. Why?:
update Boost for 1.68.0 or higher version.
As I told you before:
so update your boost libs.
-
J JonB referenced this topic on