Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect C++20 flags and add automatically #284

Open
jeffhammond opened this issue Aug 25, 2020 · 2 comments
Open

detect C++20 flags and add automatically #284

jeffhammond opened this issue Aug 25, 2020 · 2 comments

Comments

@jeffhammond
Copy link

You are using C++20, which recent releases of Clang and GCC should partially support.

Surely there is some recipe for C++20 flag detection and application using CMake already...

In file included from /Users/jrhammon/Work/SYCL/triSYCL/tests/jacobi/include/jacobi-stencil.hpp:4:
/Users/jrhammon/Work/SYCL/triSYCL/tests/jacobi/include/stencil-fxd.hpp:248:15: warning: explicit capture of 'this' with a capture default of '=' is a C++20 extension
      [-Wc++20-extensions]
          [=, this] (cl::sycl::id<2> id) {
@keryell
Copy link
Member

keryell commented Aug 25, 2020

Yes, this is the annoying part because I was using this code before without this and I had some warnings with C++20.
So, I added it to avoid warnings with C++20 but now I have some warnings when not using C++20... :-(
Anyway, we are in 2020 right? :-)

@jeffhammond
Copy link
Author

Anyway, we are in 2020 right? :-)

I would argue we are actually all dead and in Hell, but I don't mind calling it 2020 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants