18 Nov
2025
18 Nov
'25
10:13 a.m.
Ruben Perez wrote:
* Do you think the approach shown above is sound? In particular, operators are in the global namespace so that they work with any enum in any namespace correctly annotated.
No, I don't think this works. The operators have to be in the enum namespace. In Describe, I put the operators in namespace boost::describe::operators, and the user then needs to put using boost::describe::operators::operator==; in every namespace where types are defined.