Several fixes for compilation with gcc (doesn't link)
This commit is contained in:
parent
a2f39692a2
commit
dd9906dbd8
20 changed files with 379 additions and 262 deletions
|
|
@ -54,3 +54,45 @@ Value::operator bool() const
|
|||
return std::strcmp(m_val, "t") == 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//void operator<<(QString &s, const Value &v)
|
||||
//{
|
||||
// s = v.asQString();
|
||||
//}
|
||||
|
||||
//void operator<<(QDateTime &l, const Value &v)
|
||||
//{
|
||||
// l = QDateTime::fromString(asQString(),
|
||||
// "yyyy-MM-dd hh:mm:ss");
|
||||
//}
|
||||
|
||||
//void operator<<(std::string &l, const Value &v)
|
||||
//{
|
||||
// l = v;
|
||||
//}
|
||||
|
||||
//void operator<<(short &l, const Value &v)
|
||||
//{
|
||||
// l = (short)std::atoi(v.c_str());
|
||||
//}
|
||||
|
||||
//void operator<<(int &l, const Value &v)
|
||||
//{
|
||||
// l = std::atoi(v.c_str());
|
||||
//}
|
||||
|
||||
//void Pgsql::operator<<(Oid &l, const Value &v)
|
||||
//{
|
||||
// l = std::atoi(v.c_str());
|
||||
//}
|
||||
|
||||
//void operator<<(__int64 &l, const Value &v)
|
||||
//{
|
||||
// l = std::strtoull(v.c_str(), nullptr, 10);
|
||||
//}
|
||||
|
||||
//void operator<<(bool &l, const Value &v)
|
||||
//{
|
||||
// l = std::strcmp(v.c_str(), "t") == 0;
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue