Skip to content

Commit 5dc3762

Browse files
committed
Revert the change which control the pointer
1 parent 507f3fa commit 5dc3762

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/mfast/aggregate_ref.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class aggregate_cref {
5757
this->instruction_ = other.instruction_;
5858
this->storage_array_ = other.storage_array_;
5959
}
60-
bool content() const { return storage_array_->of_group.content_ != nullptr; }
6160

6261
class iterator
6362
: public boost::iterator_facade<iterator, field_cref,

src/mfast/ext_ref.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class ext_cref<BaseCRef, group_type_tag, Properties>
194194
explicit ext_cref(const field_cref &base) : base_(base) {}
195195
explicit ext_cref(const aggregate_cref &base) : base_(base) {}
196196
cref_type get() const { return base_; }
197-
bool present() const { return !this->optional() || base_.content(); }
197+
bool present() const { return !this->optional() || base_.present(); }
198198

199199
private:
200200
cref_type base_;

0 commit comments

Comments
 (0)