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

Incompatibility with C++20 #616

Closed
fmorgner opened this issue Jun 10, 2021 · 0 comments · Fixed by #617
Closed

Incompatibility with C++20 #616

fmorgner opened this issue Jun 10, 2021 · 0 comments · Fixed by #617
Labels
cat/annoyance Not a bug, not a feature, but something that should be improved
Milestone

Comments

@fmorgner
Copy link
Contributor

fmorgner commented Jun 10, 2021

Actual behavior

Compilation fails when using the jpeg io extension (and others).

In file included from /home/sophia/.conan/data/boost/1.76.0/_/_/package/dc8aedd23a0f0a773a5fcdcfe1ae3e89c4205978/include/boost/gil/extension/io/jpeg/read.hpp:13,
                 from /home/sophia/.conan/data/boost/1.76.0/_/_/package/dc8aedd23a0f0a773a5fcdcfe1ae3e89c4205978/include/boost/gil/extension/io/jpeg.hpp:11,
                 from /home/sophia/Projects/system/wanda/src/wanda/wallpaper.cpp:8:
/home/sophia/.conan/data/boost/1.76.0/_/_/package/dc8aedd23a0f0a773a5fcdcfe1ae3e89c4205978/include/boost/gil/extension/io/jpeg/tags.hpp:144:35: error: expected unqualified-id before ‘)’ token
  144 |     image_read_settings<jpeg_tag>()
      |                                   ^
make[2]: *** [CMakeFiles/wandad.dir/build.make:118: CMakeFiles/wandad.dir/src/wanda/wallpaper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:170: CMakeFiles/wandad.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Expected behavior

Compilation should succeed.

C++ Minimal Working Example

#include <boost/gil/extension/io/jpeg.hpp>
int main() {}

Environment

With the release of ISO14882:2020, simple-template-ids are no longer considered valid as the id-expression of the ptr-declarator when declaring the constructor of a class template specialization.

See also:

  • Compiler version: GCC 11.1
  • Build settings: -std=c++20
  • Version (Git ref or <boost/version.hpp>): 1.76.0
@mloskot mloskot added this to the Boost 1.78+ milestone Jan 7, 2022
@mloskot mloskot added the cat/annoyance Not a bug, not a feature, but something that should be improved label Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/annoyance Not a bug, not a feature, but something that should be improved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants