From 1b2fc630ee7edf4f8763bbf0e976789d26ff9372 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 13 Aug 2011 19:11:21 +0300 Subject: [PATCH] Default constructor added for SERVICE_CONF --- include/stg/service_conf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/stg/service_conf.h b/include/stg/service_conf.h index ea3495b3..5f015d0b 100644 --- a/include/stg/service_conf.h +++ b/include/stg/service_conf.h @@ -5,6 +5,9 @@ struct SERVICE_CONF { +SERVICE_CONF() + : name(), comment(), cost(0), payDay(0) +{} SERVICE_CONF(const std::string & n) : name(n), comment(), cost(0), payDay(0) {} @@ -25,5 +28,11 @@ double cost; unsigned payDay; }; +inline +bool operator==(const SERVICE_CONF & a, const SERVICE_CONF & b) +{ +return a.name == b.name; +} + #endif //SERVICE_CONF_H -- 2.44.2