Answered step by step
Verified Expert Solution
Question
1 Approved Answer
void Library::sortBooks ( ) const { std::sort ( books . begin ( ) , books.end ( ) , [ ] ( const Book& pr ,
void Library::sortBooks const
std::sortbooksbegin books.end
const Book& pr const Book& rpr
return prgetBookTitle rprgetBookTitle; ;
returns two errors, c with the description 'bool Library::sortBooks::::operatorconst Book& const Book& const': cannot convert argument from 'char' to 'const Book& in the file xutility line twice, and the same error in the file algorithm, lines The algorithm file is only used to sort the books, and the xutility file isnt used at all in my project so i dont understand why it is giving me errors. any help is appreciated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started