0

使用 lambda 扩展 AES 密钥,它已显示此错误:

no suitable conversion function from "lambda []int (std::__1::string prekey)->int" to "int" exists

我正在使用的代码是:

int expandedkey = [] (std::string prekey, int bit) -> int {};

这是我在 Wikipedia 上找到的描述 lambdas 的内容,我不知道这是其中的 [capture]。

[capture] (args) -> return_type {body}

标准:GNU++ 11

4

0 回答 0