std::string Host;
TimeToLive Ttl;
- Cname();
- Cname(const std::string &host, const uint32_t ttl);
- Cname(const std::string &host, const TimeToLive &ttl);
+ Cname() {}
+ Cname(const std::string &host, const uint32_t ttl)
+ : Host(host), Ttl( TimeToLive(ttl) ) {}
+
+ Cname(const std::string &host, const TimeToLive &ttl)
+ : Host(host), Ttl(ttl) {}
// serialization
friend class boost::serialization::access;