mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-12 14:18:55 -05:00
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:
@@ -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
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user