chiark / gitweb /
silence compiler warning
authorstevenj <stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:31:35 +0000 (00:31 -0400)
committerstevenj <stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:31:35 +0000 (00:31 -0400)
darcs-hash:20100611043135-c8de0-825ee0c5230607c6c9f85db0e7ff1435949a40da.gz

api/nlopt-in.hpp

index a6f2641bc1c549954a1f85eb83d5c92a3442b081..d68329a2bd2b0f01bd71622dc93a04f1d95afbc4 100644 (file)
@@ -70,8 +70,6 @@ namespace nlopt {
   class opt {
   private:
     nlopt_opt o;
-    result last_result;
-    double last_optf;
     
     void mythrow(nlopt_result ret) const {
       switch (ret) {
@@ -160,6 +158,9 @@ namespace nlopt {
       }
     }
 
+    result last_result;
+    double last_optf;
+
   public:
     // Constructors etc.
     opt() : o(NULL), xtmp(0), gradtmp(0), gradtmp0(0),