C++ auto用作函数参数

c++11中auto不能用作函数参数。

在gcc version 8.1.0 (x86_64-win32-seh-rev0, Built by MinGW-W64 project) --C++14中

可以运行,会警告:use of 'auto' in parameter declaration only available with -fconcepts

posted @ 2023-09-06 09:27  TheSorry  阅读(180)  评论(0)    收藏  举报