Hi,
This syntax is valid in the C++ Concepts Technical Specification, but not in C++20. In C++20 concepts, auto is only permitted at the top level in a function parameter type.
For more details I suggest you could refer to the links:
https://stackoverflow.com/questions/60358154/auto-as-a-template-argument-placeholder-for-a-function-parameter
https://stackoverflow.com/questions/38026884/advantages-of-auto-in-template-parameters-in-c17
As far as I'm concerned you could try to use c++17 in the the latest MSVC. (Priperties -> General -> C++ language Standard -> ISO C++17 Standard(std:c++17)).
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.