Menu

C++ Scoped Enums

2018-10-26
2018-11-13
  • Carey Gister

    Carey Gister - 2018-10-26

    I'm using Doxygen XML to create custom output pages. How can I differentiate a C++ scoped enum from a plain old enum in the XML output files?

    Thanks!

     
  • Carey Gister

    Carey Gister - 2018-11-13

    It turns out there is a way to differentiate the two. There is a "strong" attribute on the <memberdef> tag. When the enum is scoped @strong="yes". Otherwise it is "no".</memberdef>

    Now, how can I tell the difference between a scoped enum declared with the struct and class keywords? I understand that they are semantically the same, however I want to capture how the types are declared in the source files.

    Thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.