]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
modified reportfile class
[mothur.git] / mothur.h
index 97a104398fb584d2d8371e0f9bca440d4aea1f8b..190254a96e4c7d7830f8405035933efda4b003ea 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -239,5 +239,15 @@ string toString(const T&x, int i){
 }
 //**********************************************************************************************************************
 
+template<class T>
+T fromString(const string& s){
+       istringstream stream (s);
+       T t;
+       stream >> t;
+       return t;
+}
+
+//**********************************************************************************************************************
+
 #endif