Using the lambda to expand an AES key, it has shown this error:
no suitable conversion function from "lambda []int (std::__1::string prekey)->int" to "int" exists
The code I am using is:
int expandedkey = [] (std::string prekey, int bit) -> int {};
This is what I found on Wikipedia describing lambdas, and I do not know that is the [capture] in it.
[capture] (args) -> return_type {body}
Standard:GNU++ 11