Skip to content

Commit

Permalink
Update ex14_15.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jieniyimiao committed Jun 24, 2015
1 parent 8b61271 commit 15d0414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch14/ex14_15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool operator<(const Book &lhs, const Book &rhs)

bool operator>(const Book &lhs, const Book &rhs)
{
return rhs < lhs;
return lhs.no_ > rhs.no_;
}

Book& Book::operator+=(const Book &rhs)
Expand Down

0 comments on commit 15d0414

Please sign in to comment.