jeudi 4 juin 2020

Confuse about Begin() method as param

I create a simple program

void method_2(int* arr, int* first, int * last){
// algorithm
}

void method_1(int arr[]){
method_2(arr, std::begin(arr), std::end(arr)); // No matching function for call begin()

}

Guys Why I'm getting "No matching function for call begin()" compiling error ? How can i solve this problem.

Aucun commentaire:

Enregistrer un commentaire