fixed compilation

This commit is contained in:
sascha 2026-07-06 06:53:11 +02:00
parent 1b98eb4019
commit 89b795c488
2 changed files with 8 additions and 4 deletions

View File

@ -21,7 +21,7 @@ public:
collection(const collection& other) = default;
void push_back(const value_type& value) {
proxy_->items().push_back(value);
proxy_->push_back(value);
}
iterator begin() {
@ -41,11 +41,11 @@ public:
}
[[nodiscard]] size_t size() const {
return proxy_->items().size();
return proxy_->size();
}
[[nodiscard]] bool empty() const {
return proxy_->items().empty();
return proxy_->empty();
}
void reset(std::shared_ptr<collection_proxy<Type>> proxy) {

View File

@ -42,7 +42,9 @@ table::table(const table &other)
, alias_(other.alias_)
, schema_name_(other.schema_name_)
, columns_(other.columns_)
, pk_column_index_(other.pk_column_index_){
, pk_column_index_(other.pk_column_index_)
, join_column_index_(other.join_column_index_)
, inverse_join_column_index_(other.inverse_join_column_index_) {
for (auto &col : columns_) {
col.table(this);
}
@ -64,6 +66,8 @@ table & table::operator=(table &&other) noexcept {
alias_ = std::move(other.alias_);
columns_ = std::move(other.columns_);
pk_column_index_ = other.pk_column_index_;
join_column_index_ = other.join_column_index_;
inverse_join_column_index_ = other.inverse_join_column_index_;
for (auto &col : columns_) {
col.table(this);
}