#include #include "database.h" #include "table.h" template class Serializer { public: Serializer(const T& value):val(value) {} void print() { std::cout << val << std::endl; } T val; }; template<> class Serializer { public: Serializer(int v): value(v) {} int value; }; int main(int argc, char **argv) { Core::DataBase base("test1"); Core::DataBase::Table* table1 = base.addTable("table1"); Core::DataBase::Table* table2 = base.addTable("table2"); base.open(); table1->addRecord(1, 2); return 0; }