mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Further conditional compilation
This commit is contained in:
@@ -205,9 +205,11 @@ public:
|
||||
mutable value_type cached_value_;
|
||||
|
||||
void check_valid() {
|
||||
#ifdef WITH_ROCKSDB
|
||||
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_)) {
|
||||
it_.reset();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
@@ -79,8 +79,10 @@ public:
|
||||
|
||||
// Validates the current iterator state.
|
||||
void check_valid() {
|
||||
#ifdef WITH_ROCKSDB
|
||||
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_))
|
||||
it_.reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user