prog.cpp: In function ‘int main()’:
prog.cpp:25:11: error: no match for ‘operator=’ (operand types are ‘BookID’ and ‘CustomerID’)
bookId = custId; // <-- fails!
^~~~~~
prog.cpp:4:7: note: candidate: ‘constexpr BookID& BookID::operator=(const BookID&)’
class BookID
^~~~~~
prog.cpp:4:7: note: no known conversion for argument 1 from ‘CustomerID’ to ‘const BookID&’
prog.cpp:4:7: note: candidate: ‘constexpr BookID& BookID::operator=(BookID&&)’
prog.cpp:4:7: note: no known conversion for argument 1 from ‘CustomerID’ to ‘BookID&&’