/* Copy only not set values */
std::copy_if(other.values.begin(), other.values.end(), std::back_inserter(values),
[&bits](const auto &elt) -> bool {
- return !isset(&bits, static_cast<int>(elt.type));
+ return (bits & static_cast<int>(elt.type)) == 0;
});
}
/* Copy only not set values */
std::copy_if(other.values.begin(), other.values.end(), std::back_inserter(values),
[&bits](const auto &elt) -> bool {
- return !isset(&bits, static_cast<int>(elt.type));
- });
+ return (bits & static_cast<int>(elt.type)) == 0;
+ });
}
auto css_declarations_block::add_rule(rule_shared_ptr rule) -> bool