Skip to content

Commit

Permalink
fix the default arg value for factories and add f flag to ctags kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Mar 26, 2018
1 parent 81bf114 commit fc6bc81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shogun/CMakeLists.txt
Expand Up @@ -458,7 +458,7 @@ IF (CTAGS_FOUND)
ADD_CUSTOM_COMMAND(OUTPUT ${CTAGS_FILE}
COMMAND ${CTAGS_EXECUTABLE} -f ${CTAGS_FILE}
# classes, enums, functions
--c++-kinds=cgp
--c++-kinds=cfgp
--fields=+im
--exclude=*.cpp
--languages=c++
Expand Down
4 changes: 2 additions & 2 deletions src/shogun/util/factory.h
Expand Up @@ -36,7 +36,7 @@ namespace shogun
return features;
}

CFeatures* features(CFile* file, EPrimitiveType primitive_type)
CFeatures* features(CFile* file, EPrimitiveType primitive_type = PT_FLOAT64)
{
REQUIRE(file, "No file provided.\n");
CFeatures* result = nullptr;
Expand Down Expand Up @@ -78,7 +78,7 @@ namespace shogun
return result;
}

CFile* csv_file(std::string fname, char rw)
CFile* csv_file(std::string fname, char rw = 'r')
{
CFile* result = new CCSVFile(fname.c_str(), rw);
SG_REF(result);
Expand Down

0 comments on commit fc6bc81

Please sign in to comment.