X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;fp=mothur.h;h=190254a96e4c7d7830f8405035933efda4b003ea;hb=24083a26340293cb3a0e44bcf79edbc9b31f41db;hp=97a104398fb584d2d8371e0f9bca440d4aea1f8b;hpb=662c0b60d65f79f672ab199300b7ee4975233465;p=mothur.git diff --git a/mothur.h b/mothur.h index 97a1043..190254a 100644 --- a/mothur.h +++ b/mothur.h @@ -239,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