Skip to content

Commit

Permalink
fix compiler errors occurring with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Oct 23, 2011
1 parent bf0bf48 commit 89c91c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shogun/io/InputParser.h
Expand Up @@ -104,7 +104,7 @@ template <class T> class CInputParser
* @param is_labelled Whether example is labelled or not (bool), optional
* @param size Size of the buffer in number of examples
*/
void init(CStreamingFile* input_file, bool is_labelled, int32_t size);
void init(CStreamingFile* input_file, bool is_labelled = true, int32_t size = PARSER_DEFAULT_BUFFSIZE);

/**
* Test if parser is running.
Expand Down Expand Up @@ -384,7 +384,7 @@ template <class T>
}

template <class T>
void CInputParser<T>::init(CStreamingFile* input_file, bool is_labelled = true, int32_t size = PARSER_DEFAULT_BUFFSIZE)
void CInputParser<T>::init(CStreamingFile* input_file, bool is_labelled, int32_t size)
{
input_source = input_file;

Expand Down
2 changes: 1 addition & 1 deletion src/shogun/io/SimpleFile.h
Expand Up @@ -63,7 +63,7 @@ template <class T> class CSimpleFile : public CSGObject
* @param num number of read elements
* @return loaded target or NULL if unsuccessful
*/
T* load(T* target, int64_t& num=0)
T* load(T* target, int64_t& num)
{
if (status)
{
Expand Down

0 comments on commit 89c91c4

Please sign in to comment.