Question: void Library::sortBooks ( ) const { std::sort ( books . begin ( ) , books.end ( ) , [ ] ( Book const& lpr ,

void Library::sortBooks() const
{
std::sort(books.begin(), books.end(),
[](Book const& lpr, Book const& rpr)
{return lpr.getBookTitle()< rpr.getBookTitle(); });
}
returns multiple instances of both compiler error c2664 and c3892, I cannot figure out why, or how to fix it. the function is defined elsewhere, and i would thoroughly appreciate any help.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!