Add a check for empty data
Snafuuz opened this issue · 3 comments
Snafuuz commented
I have some cases in which it would be nice to know if a certain data object contains any attribute or not. This could easily be done by adding a new function to the data class:
bool is_empty_object() const {
return is_object() && obj_->empty();
}
kainjow commented
Feel free to submit a pull request!
Snafuuz commented
I tried, but it seems I don‘t have permission to create another branch and push my changes there.
I‘m reluctant to create a fork if the whole repo for such a tiny change
I can push the change and create a pull request if you can grant me push permission
… Am 15.03.2018 um 04:55 schrieb Kevin Wojniak ***@***.***>:
Feel free to submit a pull request!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
kainjow commented