mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
da636827f1
commit
18f7132e89
|
@ -6,7 +6,16 @@
|
||||||
// DataBase_Loader - Private Methods
|
// 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 DataBase_Loader::toLower(const string& s) {
|
||||||
string retval( s );
|
string retval( s );
|
||||||
|
|
|
@ -76,6 +76,8 @@ public:
|
||||||
|
|
||||||
class DataBase_Loader {
|
class DataBase_Loader {
|
||||||
private:
|
private:
|
||||||
|
// Fix me
|
||||||
|
#ifdef __LINUX__
|
||||||
template<class T> string toString(const T& value) {
|
template<class T> string toString(const T& value) {
|
||||||
stringstream ss(ios_base::in | ios_base::out);
|
stringstream ss(ios_base::in | ios_base::out);
|
||||||
string tString;
|
string tString;
|
||||||
|
@ -83,6 +85,9 @@ private:
|
||||||
ss >> tString;
|
ss >> tString;
|
||||||
return tString;
|
return tString;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
template<class T> string toString(const T& value);
|
||||||
|
#endif
|
||||||
string toLower(const string& s);
|
string toLower(const string& s);
|
||||||
bool strCompare(const string& s1, const string& s2);
|
bool strCompare(const string& s1, const string& s2);
|
||||||
bool isComment(const string& s);
|
bool isComment(const string& s);
|
||||||
|
|
Loading…
Reference in New Issue