Menu

check enum values

Antoine
2020-02-12
2020-02-12
  • Antoine

    Antoine - 2020-02-12

    Hi,
    I wonder if it is possible to check enum values during assignment or comparison.
    As an example, attached code shows the issue.
    This is a common mistake that I found many times, but only few tools can detect it. gcc can't, but clang can.

    Antoine

     

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.