The line of code is simply this:
sort(vVector1.begin(), vVector1.end(), SortVectorbySize);
Here's my problem. I cut & pasted this line from another project where that one compiled without any problems with this line of code.....But in this project I get this error..
1>c:\documents and settings\administrator\des
ktop\copy of firstapp\firstapp\function
.cpp(545) : error C2780: 'void std::sort(_RanIt,_RanIt)' : expects 2 arguments - 3 provided
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\algorithm(3
110) : see declaration of 'std::sort'
I looked up this website:
And it shows that the 3rd parameter can be a compare parameter...which is what it was in the other project that compiles successfully...why won't it work in my new project?