Fix examples mostly

This commit is contained in:
Thomas Krijnen
2026-01-07 13:51:48 +01:00
parent 572a5655cf
commit f2f4d626a5
13 changed files with 545 additions and 574 deletions
+13 -10
View File
@@ -51,21 +51,24 @@ class IFC_PARSE_API Base {
protected:
std::weak_ptr<InstanceData> data_;
public:
operator bool() const {
return !data_.expired();
}
}
bool operator<(const Base& other) const {
return data() < other.data();
}
bool operator<(const Base& other) const {
return data() < other.data();
}
bool operator==(const Base& other) const {
return data() == other.data();
}
bool operator==(const Base& other) const {
return data() == other.data();
}
Base() {};
Base(const std::weak_ptr<InstanceData>& data) : data_(data) {}
bool operator!=(const Base& other) const {
return !(*this == other);
}
Base() {};
Base(const std::weak_ptr<InstanceData>& data) : data_(data) {}
const InstanceData* data() const;
InstanceData* data();