r/cpp • • Nov 14 '16

GCC trunk is -std=c++17 ready

http://en.cppreference.com/w/cpp/compiler_support
222 Upvotes

58 comments sorted by

View all comments

6

u/OmegaNaughtEquals1 Nov 14 '16

For libstdc++,

FeatureProposalStatus
Adopt the File System TS for C++17P0218R1No
Variadic lock_guardP0156R0No
Removing auto_ptr, random_shuffle(), And Old <functional> StuffN4190No (kept for backwards compatibility)

Here's hoping they are ready for the 7.0 release. Not getting rid of the fully deprecated stuff is sad, but understandable. I hope they pull it from the docs so new users won't try to use it.

1

u/HotlLava Nov 16 '16

If they remove auto_ptr, then Boost.Python will break...so I'm hoping they will leave a deprecated version of it laying around somewhere, it's not like it hurts anyone :/

1

u/OmegaNaughtEquals1 Nov 16 '16

Boost is riddled with auto_ptr. Compiling any Boost stuff with gcc-6.2 gives lots of warnings about it (as well as lots of broken placement new. But that's a whole other discussion). I would imagine this is just one of many examples as the driving reason not to remove it from libstdc++.

1

u/dodheim Nov 16 '16

The Boost devs are working on it; here is an ongoing thread discussing it on the Boost ML: http://lists.boost.org/Archives/boost/2016/11/231400.php