Fix SelectionParserParameter move constructor problem.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 30 Aug 2012 02:58:05 +0000 (05:58 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Thu, 30 Aug 2012 02:58:05 +0000 (05:58 +0300)
C++11 only declares move constructors implicitly if a class does not
have a user-defined destructor.

Change-Id: I3c12b0e93920c102d77bb436c417ceef90a9c6c6

src/gromacs/selection/parsetree.cpp
src/gromacs/selection/parsetree.h

index 68aebbc204ede19546dc99cef7414c5d71021edd..5d6858904aebab0c8d0336f15595877b2ddc3c4f 100644 (file)
@@ -310,10 +310,6 @@ SelectionParserParameter::SelectionParserParameter(
 {
 }
 
-SelectionParserParameter::~SelectionParserParameter()
-{
-}
-
 } // namespace gmx
 
 /*!
index fa78205dab66cdffe0802f7b47efa20b54a2e6f0..ccfd8b3fbd261257af07a1a4dd7154312b066df2 100644 (file)
@@ -355,7 +355,6 @@ class SelectionParserParameter
          */
         SelectionParserParameter(const char *name,
                                  SelectionParserValueListPointer values);
-        ~SelectionParserParameter();
 
         //! Returns the name of the parameter (may be empty).
         const std::string &name() const { return name_; }