summaryrefslogtreecommitdiff
path: root/vest/mr_vest_map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'vest/mr_vest_map.cc')
-rw-r--r--vest/mr_vest_map.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vest/mr_vest_map.cc b/vest/mr_vest_map.cc
index 1506a99f..71dda6d7 100644
--- a/vest/mr_vest_map.cc
+++ b/vest/mr_vest_map.cc
@@ -43,6 +43,11 @@ void InitCommandLine(int argc, char** argv, po::variables_map* conf) {
}
bool ReadSparseVectorString(const string& s, SparseVector<double>* v) {
+#if 0
+ // this should work, but untested.
+ std::istringstream i(s);
+ i>>*v;
+#else
vector<string> fields;
Tokenize(s, ';', &fields);
if (fields.empty()) return false;
@@ -56,6 +61,7 @@ bool ReadSparseVectorString(const string& s, SparseVector<double>* v) {
v->set_value(FD::Convert(pair[0]), atof(pair[1].c_str()));
}
return true;
+#endif
}
int main(int argc, char** argv) {