[webkit-dev] C++17 is here. Should we use it?

Yusuke SUZUKI utatane.tea at gmail.com
Fri Aug 4 13:48:26 PDT 2017


I really like C++17, `if with initializer` is super great. Awesome
constexpr lambda and if.
And std::optional and std::variant...

However, IIRC, WebKitGTK+ needs to support some old compilers.
The current GCC support is 5.0.0, which is recently upgraded.
https://bugs.webkit.org/show_bug.cgi?id=174155

Possibly, mcatanzaro and clopez know much about WebKitGTK+ compiler
dependencies.

Regards,
Yusuke Suzuki

On Sat, Aug 5, 2017 at 5:39 AM, JF Bastien <jfbastien at apple.com> wrote:

> Hello WebKilters,
>
> Our Chrome-y friends are considering the use of C++14
> <https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/cxx/ow7hmdDm4yw/eV6KWL2yAQAJ>.
> I have to say that C++14 in WebKit has been *quite amazing*, and we
> should consider using C++17: it has many wonderful new things
> <https://github.com/tvaneerd/cpp17_in_TTs/blob/master/ALL_IN_ONE.md>,
> some of which we already use through WTF’s re-implementation of library
> features. By now (table as witness
> <http://en.cppreference.com/w/cpp/compiler_support>) most C++17 languages
> features are in clang and GCC, and MSVC isn’t doing too bad either.
> Language things can just come through WTF if we really want them.
>
> So how about it?
>
> JF
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20170805/886fc4e2/attachment.html>


More information about the webkit-dev mailing list