And const directives in account.h and commodity.h to allow build in OS X Mavericks.

This commit is contained in:
Craig Earls 2013-10-30 06:40:17 -07:00
parent de5cc27914
commit d7d442135b
2 changed files with 2 additions and 2 deletions

View file

@ -310,7 +310,7 @@ void put_account(property_tree::ptree& pt, const account_t& acct,
//simple struct added to allow std::map to compare accounts in the accounts report
struct account_compare {
bool operator() (const account_t& lhs, const account_t& rhs){
bool operator() (const account_t& lhs, const account_t& rhs) const {
return (lhs.fullname().compare(rhs.fullname()) < 0);
}
};

View file

@ -353,7 +353,7 @@ void put_commodity(property_tree::ptree& pt, const commodity_t& comm,
//simple struct to allow std::map to compare commodities names
struct commodity_compare {
bool operator() (const commodity_t* lhs, const commodity_t* rhs){
bool operator() (const commodity_t* lhs, const commodity_t* rhs) const {
return (lhs->symbol().compare(rhs->symbol()) < 0);
}
};