Skip to content

Commit

Permalink
Update ex10_12.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy authored and pezy committed Jun 24, 2015
1 parent 3de06c7 commit 0e69d55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ch10/ex10_12.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! @Alan
//! @Yue Wang
//! Exercise 10.12:
//! Write a function named compareIsbn that compares the isbn() members of two Sales_data objects.
//! Use that function to sort a vector that holds Sales_data objects.
Expand All @@ -11,8 +11,7 @@
#include <numeric>
#include "../ch07/ex7_26.h" // Sales_data class.

inline bool
compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
inline bool compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
{
return sd1.isbn().size() < sd2.isbn().size();
}
Expand Down

0 comments on commit 0e69d55

Please sign in to comment.