I have this code:
std::array<int,16> copyarray(int input[16])
{
std::array<int, 16> result;
std::copy(std::begin(input), std::end(input), std::begin(result));
return result;
}
When I try to compile this code, O am getting this error:
'std::begin': no matching overloaded function found
and similar error for the std::end
What is the problem and how I can fix it?
Aucun commentaire:
Enregistrer un commentaire