Skip to content

Commit

Permalink
make parse_file in SVMlight reader static
Browse files Browse the repository at this point in the history
Don't pollute global C++ namespace with such a generic name.
  • Loading branch information
larsmans committed Jun 29, 2011
1 parent d922db3 commit 4391ac8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scikits/learn/datasets/_svmlight_format.cpp
Expand Up @@ -242,12 +242,12 @@ void parse_line(const std::string& line,
/*
* Parse entire file. Throws exception on failure.
*/
void parse_file(char const *file_path,
size_t buffer_size,
std::vector<double> &data,
std::vector<int> &indices,
std::vector<int> &indptr,
std::vector<double> &labels)
static void parse_file(char const *file_path,
size_t buffer_size,
std::vector<double> &data,
std::vector<int> &indices,
std::vector<int> &indptr,
std::vector<double> &labels)
{
std::vector<char> buffer(buffer_size);

Expand Down

0 comments on commit 4391ac8

Please sign in to comment.