We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template <typename ReturnType, typename... Ts, typename Function, typename Accessor> ReturnType unpack(Function function, Accessor accessor) { return ReturnType(unpack<ReturnType, Ts...>( std::move(function), std::move(accessor), typename MakeIndices<sizeof...(Ts)>::indices())); }
template <typename ReturnType, typename... Ts, typename Function, typename Accessor, size_t... Is> ReturnType unpack(Function function, Accessor accessor, Indices<Is...>) { return ReturnType(function(accessor.template operator()(Is)...)); }
错误 C2059 语法错误:“template” yolo-app E:\correct\libtorch\include\torch\csrc\utils\variadic.h 195 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2951 模板 声明只能在全局、命名空间或类范围内使用 yolo-app E:\correct\libtorch\include\torch\csrc\utils\variadic.h 195
The text was updated successfully, but these errors were encountered:
请问你解决了么,我也遇到了这个问题
Sorry, something went wrong.
No branches or pull requests
template <typename ReturnType, typename... Ts, typename Function, typename Accessor>
ReturnType unpack(Function function, Accessor accessor) {
return ReturnType(unpack<ReturnType, Ts...>(
std::move(function),
std::move(accessor),
typename MakeIndices<sizeof...(Ts)>::indices()));
}
template <typename ReturnType, typename... Ts, typename Function, typename Accessor, size_t... Is>
ReturnType unpack(Function function, Accessor accessor, Indices<Is...>) {
return ReturnType(function(accessor.template operator()(Is)...));
}
错误 C2059 语法错误:“template” yolo-app E:\correct\libtorch\include\torch\csrc\utils\variadic.h 195
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2951 模板 声明只能在全局、命名空间或类范围内使用 yolo-app E:\correct\libtorch\include\torch\csrc\utils\variadic.h 195
The text was updated successfully, but these errors were encountered: