X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a5ce0ca3674081d3b761eb1bc88654d6fd9d3755..e90c42436ebc265ec787124be5980bbdbc9e8c6a:/include/stg/corp_conf.h diff --git a/include/stg/corp_conf.h b/include/stg/corp_conf.h index e29a5dcf..3810516d 100644 --- a/include/stg/corp_conf.h +++ b/include/stg/corp_conf.h @@ -5,11 +5,18 @@ struct CORP_CONF { -CORP_CONF(const std::string & n) : name(n), cash(0) {} +CORP_CONF() : name(), cash(0) {} +explicit CORP_CONF(const std::string & n) : name(n), cash(0) {} CORP_CONF(const std::string & n, double c) : name(n), cash(c) {} std::string name; double cash; }; +inline +bool operator==(const CORP_CONF & a, const CORP_CONF & b) +{ +return a.name == b.name; +} + #endif //CORP_CONF_H