Clang 16 compilation issue
Hi Simon,
i tried to compile the dune-curvedgrid
master with Clang 16 and I got as compiler error:
[ 50%] Building CXX object src/CMakeFiles/example4.dir/example4.cc.o
[91m/dune/dune-curvedgrid/src/example4.cc:61:13: error: alias template 'VtkReader' requires template arguments; argument deduction only allowed for class templates
VtkReader reader(creator);
^
[0m[91m/dune/dune-vtk/dune/vtk/vtkreader.hh:338:3: note: template is declared here
using VtkReader [[deprecated("Use Vtk::VtkReader instead.")]]
^
[0m[91m1 error generated.
I looked around and found that large answer https://stackoverflow.com/questions/41008092/class-template-argument-deduction-not-working-with-alias-template and in https://en.cppreference.com/w/cpp/language/template_argument_deduction, there it is stated that Alias templates are not deduced , except in class template argument deduction (since C++20) .
So I wonder why clang 16 does not recognize it as a class template, which should be fine at least with C++20? With GCC 12 it works for me.