Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
enable reference counting by default (even in default constructors) f…
…or SG Datatypes
  • Loading branch information
Soeren Sonnenburg committed Aug 31, 2012
1 parent 25ba47c commit bb0907c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/shogun/features/DenseFeatures.cpp
Expand Up @@ -579,7 +579,7 @@ template<class ST> void CDenseFeatures<ST>::init()
num_vectors = 0;
num_features = 0;

feature_matrix = SGMatrix<ST>(1,1);
feature_matrix = SGMatrix<ST>();
feature_cache = NULL;

set_generic<ST>();
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/SGMatrix.h
Expand Up @@ -25,7 +25,7 @@ template<class T> class SGMatrix : public SGReferencedData
{
public:
/** default constructor */
SGMatrix() : SGReferencedData(false)
SGMatrix() : SGReferencedData()
{
init_data();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/SGMatrixList.cpp
Expand Up @@ -13,7 +13,7 @@
namespace shogun {

template <class T>
SGMatrixList<T>::SGMatrixList() : SGReferencedData(false)
SGMatrixList<T>::SGMatrixList() : SGReferencedData()
{
init_data();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/SGSparseMatrix.h
Expand Up @@ -25,7 +25,7 @@ template <class T> class SGSparseMatrix : public SGReferencedData
{
public:
/** default constructor */
SGSparseMatrix() : SGReferencedData(false)
SGSparseMatrix() : SGReferencedData()
{
init_data();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/SGSparseVector.h
Expand Up @@ -36,7 +36,7 @@ template <class T> class SGSparseVector : public SGReferencedData
{
public:
/** default constructor */
SGSparseVector() : SGReferencedData(false)
SGSparseVector() : SGReferencedData()
{
init_data();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/SGVector.cpp
Expand Up @@ -21,7 +21,7 @@

namespace shogun {

template<class T> SGVector<T>::SGVector() : SGReferencedData(false)
template<class T> SGVector<T>::SGVector() : SGReferencedData()
{
init_data();
}
Expand Down

0 comments on commit bb0907c

Please sign in to comment.