Loading src/Ainur/AinurState1.cpp +25 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,26 @@ namespace PsimagLite { struct MyProxyFor { static void convert(long unsigned int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(unsigned int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(long int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(double& t, std::string str) { t = PsimagLite::atof(str); Loading @@ -25,6 +45,11 @@ struct MyProxyFor { t = toComplex<T>(str); } static void convert(String& t, std::string str) { t = str; } template<typename T> static void convert(T& t, std::string str) { Loading Loading
src/Ainur/AinurState1.cpp +25 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,26 @@ namespace PsimagLite { struct MyProxyFor { static void convert(long unsigned int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(unsigned int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(long int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(int& t, std::string str) { t = PsimagLite::atoi(str); } static void convert(double& t, std::string str) { t = PsimagLite::atof(str); Loading @@ -25,6 +45,11 @@ struct MyProxyFor { t = toComplex<T>(str); } static void convert(String& t, std::string str) { t = str; } template<typename T> static void convert(T& t, std::string str) { Loading