Function specialization to access struct members with getter using enum

前端 未结 0 1549
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 02:33

I have an enum and a struct

enum STORE_ENUM { A_DATA, B_DATA, C_DATA, D_DATA };
struct Store {
   int a;
   char b;
   long c;
   bool d;

}

and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题