--nextPart2137826.D2IouBDCR5 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Milian Wolff To: kde-frameworks-devel@kde.org Cc: Frederik Schwarzer Subject: Re: Noteworthy changes when porting to C++17 Date: Sun, 18 Jul 2021 21:53:17 +0200 Message-ID: <1685279.lbZ3ktL1Dt@agathebauer> In-Reply-To: <207a6708-4bb0-cb58-081d-e54c5f6686f2@kde.org> References: <207a6708-4bb0-cb58-081d-e54c5f6686f2@kde.org> On Sonntag, 18. Juli 2021 02:34:24 CEST Frederik Schwarzer wrote: > Hi, > > since we are increasing the C++ standard requirement from 11 to 17 with > KF6 and there were a few deprecations/removals in between, I wonder if > any of those are noteworthy for people developing applications based on > KDE Frameworks. > > What I mean by "noteworthy" is features that are commonly used or at > least known to be used sometimes in our ecosystem. Things like the > "register" keyword for example might not be found in high-level > applications so pointing KDE developers to its removal might get you > shrugs in return. > > What I have seen is that std::mem_fun was used within KIO and has been > replaced by std::mem_fn. Not sure if that counts as "commonly used", though. Imo, usages of either of these two should be rewritten to use lambdas instead. > Compiler vendors seem to be handling those removalss differently. The > libstdc++ devs have not had deprecation warnings for at least some of > the stuff that was deprecated in C++11, so they will not remove those > any time soon. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91383#c1 > > In libc++, the deprecation warnings were shown since C++11 and now with > C++17 they removed some stuff. On Linux you will have to build with the > -stdlib=libc++ option for clang to notice. See e.g. > https://godbolt.org/z/6Y1eE3z4P for playing with it. > > But I digress ... > > So the question is: did you notice things that have been removed from > the C++ standard since C++11 that were used in our applications? -- Milian Wolff mail@milianw.de http://milianw.de --nextPart2137826.D2IouBDCR5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAmD0hq0ACgkQ8zYW/HGd OX8M6xAAp0211o11Cp/laKQNNRt9jqjISuS9yIB1Ff6BGAfJOtyoe9pck51E1EvO u38UeZYwcFvnsRNtQVHQEAaXOOT4hQ2e26Qu22srZvVETvxkT6GKAXkKi3e2sq1d 8YxVamcx8lf/kiEuH6slwQsUm6hEmoaAQKV1SJ/o9Nq8RO76LwChnI93lkuO92Yy /mIYWc/LQjZ4UE1wKYYwmvKdYzWNneE4X//ZOcPc5kOKFMG2ex/kFWJebx+JQ0K8 mkvcioxj3SKnhX9i0lbINVCuZwk47tvaD1u/rmUDMNSSAhNU0Dx+V6eNTdSH+Aku l7wi5bpCKTqUXZzJMNMpAT2hiA3/cdv1/AsyLykVt3q8BHazNv9XrdHtDitDB1HI ay+3ZSicrbRTC1/Ma+rX4qN/VDE668OQgyMO5EYco5syL/oyybcg5Y9fUCkBx0Qc /0cBHzqM5u3U6jWSdzEcv5HNNRqv8P8000+/gDr4Mdkd4N4RKJ14dsmo5Az1+IHb pnuQXPcplNZiwy0uJ4Hk3+e8hmjQ7owMLPCf8Zc4zP70JJFaImubgpb2EO9Jgmz+ dSbkCJukGpn6jhqtv+1dMX9rpza7mF9wtq3yalnIAN0pFsxe+nXbfzG1CS7K8FHB EI6oYILXfzRyQVF5WPhrqFaEOxCAqQj2XADn68/yyfNfP+g02rM= =qth4 -----END PGP SIGNATURE----- --nextPart2137826.D2IouBDCR5--