boostorg / wave

Boost.org wave module
http://boost.org/libs/wave
21 stars 49 forks source link

bitwise operations between different enumeration types are deprecated #147

Closed jefftrull closed 2 years ago

jefftrull commented 2 years ago

Starting in C++20, various kinds of arithmetic operations are deprecated as described in P1120R0. Among them, apparently, are the bitwise operations Wave uses to identify token categories - operations between token_id and token_category, specifically. There are many (here is one example) but it may be possible to solve it in a small number of places with an appropriate cast.

hkaiser commented 2 years ago

Alternatively, we could define the operators: https://eel.is/c++draft/bitmask.types

jefftrull commented 2 years ago

closed by #148