Permalink
Browse files

make parse_file in SVMlight reader static

Don't pollute global C++ namespace with such a generic name.
  • Loading branch information...
1 parent d922db3 commit 4391ac823fa4263656be62f1f756c6a0bfee24fb @larsmans larsmans committed Jun 29, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 scikits/learn/datasets/_svmlight_format.cpp
@@ -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);

0 comments on commit 4391ac8

Please sign in to comment.