Le ven. 11 févr. 2022 à 00:36, Casey Bodley <cbodley@xxxxxxxxxx> a écrit :
the R release could be a good opportunity to make the switch to c++20
gcc and clang both track their support for c++20 features over
compiler versions in:
https://gcc.gnu.org/projects/cxx-status.html#cxx20
https://clang.llvm.org/cxx_status.html#cxx20
thanks to the dev toolset in rhel/centos, we should already have
access to compilers that support c++20. for ubuntu, focal is still on
gcc-9 which doesn't understand -std=c++20 at all, but clang-10 does
if we're willing to switch our ubuntu builds to clang, we could start
experimenting with c++20 on master now. otherwise, we can wait for the
jammy release in april
in the longer term, i'd love to take advantage of c++20's modules to
speed up ceph builds, but it could take another year or so before
cmake and the compilers support everything we need
are there any other concerns or obstacles to making this switch?
IIUC, one of librados API uses “requires” as the parameter name. While this is a new keyword introduced by C++20. Apart from it, I am willing to see the switch, another life changer would be coroutines. Despite that we would need to swing some primitives which could (and probably should) be implemented by the standard library, the async call would be much elegant than chained SafeContext 8-)
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx
Regards
Kefu Chai
Kefu Chai
_______________________________________________ Dev mailing list -- dev@xxxxxxx To unsubscribe send an email to dev-leave@xxxxxxx