Skip to content

Commit

Permalink
fixes in default constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
gsomix committed May 9, 2012
1 parent 7d48e17 commit bb6c2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions src/shogun/lib/Map.h
Expand Up @@ -56,19 +56,8 @@ IGNORE_IN_CLASSLIST template<class K, class T> struct CMapNode
IGNORE_IN_CLASSLIST template<class K, class T> class CMap: public CSGObject
{
public:
/** Default constructor */
CMap()
{
hash_size=0;
free_index=0;
num_elements=0;
hash_array=NULL;
array=NULL;
use_sg_mallocs=false;
}

/** Custom constructor */
CMap(int32_t size, int32_t reserved=1024, bool tracable=true)
CMap(int32_t size=1, int32_t reserved=1, bool tracable=true)
{
hash_size=size;
free_index=0;
Expand Down
13 changes: 1 addition & 12 deletions src/shogun/lib/Set.h
Expand Up @@ -49,19 +49,8 @@ template<class T> struct CSetNode
template<class T> class CSet: public CSGObject
{
public:
/** Default constructor */
CSet()
{
hash_size=0;
free_index=0;
num_elements=0;
hash_array=NULL;
array=NULL;
use_sg_mallocs=false;
}

/** Custom constructor */
CSet(int32_t size, int32_t reserved=1024, bool tracable=true)
CSet(int32_t size=1, int32_t reserved=1, bool tracable=true)
{
hash_size=size;
free_index=0;
Expand Down

0 comments on commit bb6c2a7

Please sign in to comment.