sysrepo / sysrepo-cpp

C++ bindings for the sysrepo library
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

EditOptions vs sr_edit_flag_t #14

Closed jjin62 closed 1 year ago

jjin62 commented 1 year ago

By wrapping sr_edit_flag_t with a Enum, seems I can not set multiple edit flags anymore, since options in Enum EditOptions are mutual-exclusive. How should deal with this?

Similarly, we would have the same issue if I wrap sr_get_oper_flag_t using a Enum?

jktjkt commented 1 year ago

I'm pretty sure you can use operator | just fine, e.g., foo(..., sysrepo::EditOptions::Isolate | sysrepo::EditOptions::Strict, ...). Please reopen if it doesn't work for you.