diff -durr plink-1.05-src-orig/helper.cpp plink-1.05-src/helper.cpp --- plink-1.05-src-orig/helper.cpp 2008-12-11 20:52:22.000000000 +0000 +++ plink-1.05-src/helper.cpp 2009-03-06 23:22:06.199103558 +0000 @@ -36,7 +36,7 @@ extern ofstream LOG; extern Plink * PP; - +/* template bool from_string(T& t, const std::string& s, @@ -45,7 +45,7 @@ std::istringstream iss(s); return !(iss >> f >> t).fail(); } - +*/ vector nvec_bool() { vector t(0); diff -durr plink-1.05-src-orig/helper.h plink-1.05-src/helper.h --- plink-1.05-src-orig/helper.h 2008-12-11 20:52:24.000000000 +0000 +++ plink-1.05-src/helper.h 2009-03-06 23:22:06.218353426 +0000 @@ -18,6 +18,9 @@ #include #include +#include +#include + #include "plink.h" template @@ -89,7 +92,13 @@ template bool from_string(T& t, const std::string& s, - std::ios_base& (*f)(std::ios_base&)); + std::ios_base& (*f)(std::ios_base&)) +{ + std::istringstream iss(s); + return !(iss >> f >> t).fail(); + } + + void error(string); void shutdown();