且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当使用lambda作为模板参数时,这个编译器错误是什么?

更新时间:2023-11-10 19:43:40

我可以确认使用GCC(在linux上),这个代码编译就好了。
所以我想说VisualStudio似乎是错误的根源。

I can confirm that using GCC (on linux), this code compiles just fine. So I'd say that VisualStudio seems to be the source of the error.