Reduced likelihood of mistakes in CRTP for tables.

Renaming serialize -> serialize_impl helped tracking down an error in
the connection implementation examples
This commit is contained in:
Roland Bock
2013-10-03 22:25:23 +02:00
parent 4d8e448152
commit c59c8d9ba9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ namespace sqlpp
template<typename Db>
void serialize(std::ostream& os, Db& db) const
{
static_cast<const Table*>(this)->serialize(os, db);
static_cast<const Table*>(this)->serialize_impl(os, db);
}
};
+2 -2
View File
@@ -67,7 +67,7 @@ struct TabFoo: sqlpp::table_base_t<
T tabFoo;
};
template<typename Db>
void serialize(std::ostream& os, Db& db) const
void serialize_impl(std::ostream& os, Db& db) const
{
os << _name_t::_get_name();
}
@@ -154,7 +154,7 @@ struct TabSample: sqlpp::table_base_t<
};
};
template<typename Db>
void serialize(std::ostream& os, Db& db) const
void serialize_impl(std::ostream& os, Db& db) const
{
os << _name_t::_get_name();
}