Merged SVN head ...
[libdai.git] / include / dai / factorgraph.h
index 0260864..7e7f4d9 100644 (file)
@@ -67,12 +67,12 @@ class FactorGraph {
         }
         virtual ~FactorGraph() {}
 
+        /// Clone *this (virtual copy constructor)
+        virtual FactorGraph* clone() const { return new FactorGraph(); }
+
         /// Create (virtual default constructor)
         virtual FactorGraph* create() const { return new FactorGraph(*this); }
 
-        /// Clone (virtual copy constructor)
-        virtual FactorGraph* clone() const { return new FactorGraph(); }
-
         // aliases
         Var & var(size_t i) { return vars[i]; }
         /// Get const reference to i'th variable