Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add virtual destructors to fix compiler warning
  • Loading branch information
Soeren Sonnenburg committed Sep 26, 2011
1 parent dce18b6 commit df28c58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/shogun/lib/DataType.h
Expand Up @@ -49,6 +49,11 @@ template<class T> class SGVector
SGVector(const SGVector &orig)
: vector(orig.vector), vlen(orig.vlen), do_free(orig.do_free) { }

/** empty destructor */
virtual ~SGVector()
{
}

/** get vector
* @param src vector to get
* @param own true if should be owned
Expand Down Expand Up @@ -305,6 +310,11 @@ template<class T> class SGMatrix
: matrix(orig.matrix), num_rows(orig.num_rows),
num_cols(orig.num_cols), do_free(orig.do_free) { }

/** empty destructor */
virtual ~SGMatrix()
{
}

/** free matrix */
virtual void free_matrix()
{
Expand Down

0 comments on commit df28c58

Please sign in to comment.