X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;h=190254a96e4c7d7830f8405035933efda4b003ea;hb=4f9a6e14a608172f8a97f0297a3b8e6ea267c518;hp=6e5833f7032aafba146f8b92cd30bacc149ab931;hpb=5553e33be3a45eee6bed2ac9a5c4ca0aa0e8d5e4;p=mothur.git diff --git a/mothur.h b/mothur.h index 6e5833f..190254a 100644 --- a/mothur.h +++ b/mothur.h @@ -57,6 +57,7 @@ #include #include #include + #include #include #include @@ -70,7 +71,7 @@ #include //get cwd #include #include - + #include #endif using namespace std; @@ -238,5 +239,15 @@ string toString(const T&x, int i){ } //********************************************************************************************************************** +template +T fromString(const string& s){ + istringstream stream (s); + T t; + stream >> t; + return t; +} + +//********************************************************************************************************************** + #endif