]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
serialize dnsname
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 19 May 2015 20:49:13 +0000 (22:49 +0200)
committermind04 <mind04@monshouwer.org>
Tue, 30 Jun 2015 06:12:43 +0000 (08:12 +0200)
pdns/dnsname.hh

index 6c0f2437e16b9fad042d73c83d88caf2a9402618..62954af0eb1faa6a1eaf602cc2c239458c65041a 100644 (file)
@@ -60,6 +60,11 @@ public:
 
   bool canonCompare(const DNSName& rhs) const;
   
+  template<class Archive>
+  void serialize(Archive &ar, const unsigned int version)
+  {
+    ar & d_storage;
+  }
 private:
   //  typedef __gnu_cxx::__sso_string string_t;
   typedef std::string string_t;