为什么我在使用 SDL2 的 C++ 中得到 'no matching token error'?

Why am I getting a 'no matching token error' in c++ with SDL2?

我正在使用 visual studio 和 visual c++ 编译器。我收到关于 'no matching token found' 的错误。我在网上搜索了一下,发现这种情况下有时会少一个括号。但是,我查看了我的代码并没有发现任何遗漏的括号。

这是我的项目:https://github.com/Ripple-Studios/SDL-Game-For-Brackeys-Jam 错误在第 77 行的 'ECS.h' 中。

您缺少一个括号:

T* c(new T(std::forward < Targs>(margs)...);

//should be
T* c(new T(std::forward < Targs>(margs)...));

此错误始终指向应该是右括号的行,但实际上不是。