Life At Tetrane
  • Misc
  • Recruitment
  • Reven
  • Startup life
  • Technical
  • Archives

Dumping an enum value when a call to static_assert() fails

Date Mon, 04 Feb 2013 By Bruno Tags array / c++ / enum / static_assert / warning

image0

We have several pieces of code at Tetrane that associate data to enumeration values, only relevant for ad-hoc evaluations. A simple example is to match a string to the different enum values, for example for representing CPU registers:

enum Registers {
    EAX = 0,
    EBX,
    // ...
};

const std::pair<Registers, std::string> descriptions ...

more ...

  • Links

    • Tetrane's website
  • Social

    • Follow Fred on twitter
  • Recent Posts

    • Dumping an enum value when a call to static_assert() fails
  • Tags

    • reven
    • Axion
    • reverse engineering
    • c++11
    • c++
    • taint
    • deobfuscation
    • reverse

© 2013 Tetrane · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top