Have I ever mentioned how much I hate getting templates to work on both Windows and Linux?

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3160 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-06-04 23:39:34 +00:00
parent da636827f1
commit 18f7132e89
2 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,16 @@
// DataBase_Loader - Private Methods
//------------------------------------------------------------------
//template<class T> string DataBase_Loader::toString(const T& value);
//Fix me
#ifndef __LINUX__
template<class T> string DataBase_Loader::toString(const T& value) {
stringstream ss(ios_base::in | ios_base::out);
string tString;
ss << value;
ss >> tString;
return tString;
}
#endif
string DataBase_Loader::toLower(const string& s) {
string retval( s );

View File

@ -76,6 +76,8 @@ public:
class DataBase_Loader {
private:
// Fix me
#ifdef __LINUX__
template<class T> string toString(const T& value) {
stringstream ss(ios_base::in | ios_base::out);
string tString;
@ -83,6 +85,9 @@ private:
ss >> tString;
return tString;
}
#else
template<class T> string toString(const T& value);
#endif
string toLower(const string& s);
bool strCompare(const string& s1, const string& s2);
bool isComment(const string& s);