pybindgen requires that the data type held by a container has a default constructor
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 19 May 2012 20:40:11 -0700
changeset 8775 b05792ad16f7
parent 8774 eac5ea7e1deb
child 8776 fe3a4ad51c52
pybindgen requires that the data type held by a container has a default constructor
src/dsr/model/dsr-rcache.h
--- a/src/dsr/model/dsr-rcache.h	Sat May 19 15:09:12 2012 -0700
+++ b/src/dsr/model/dsr-rcache.h	Sat May 19 20:40:11 2012 -0700
@@ -493,6 +493,8 @@
         close (false)
     {
     }
+
+    Neighbor () {} // For Python bindings
   };
   // / Return expire time for neighbor node with address addr, if exists, else return 0.
   Time GetExpireTime (Ipv4Address addr);