Continued to implement standard serializing interpreters

Everything that is interpreted also has to move out of detail namespace,
because it might have to be specialized for a database connector
This commit is contained in:
rbock
2014-01-11 21:51:57 +01:00
parent bef7cea6a6
commit 47ae6a2e76
13 changed files with 215 additions and 208 deletions
+4 -2
View File
@@ -36,8 +36,10 @@ int main()
{
TabSample t;
interpret(t.alpha, printer);
interpret(t.alpha = 7, printer);
interpret(t.alpha, printer).flush();
interpret(t.alpha = 7, printer).flush();
sqlpp::text_operand o = {"kaesekuchen"};
interpret(t.beta + "kaesekuchen", printer).flush();
return 0;
}
+11 -1
View File
@@ -39,11 +39,21 @@ public:
{}
template<typename T>
std::ostream& operator<<(const T& t)
std::ostream& operator<<(T t)
{
return _os << t;
}
void flush()
{
_os << std::endl;
}
std::string escape(std::string arg)
{
return arg;
}
std::ostream& _os;
};