How do I enable a struct instance to have fields with different types based on the enum value passed in?

后端 未结 0 329
余生分开走
余生分开走 2020-12-15 02:34

I\'d like to create different \'flavors\' of a struct. This means that depending on which enum I\'m passing into the structure\'s constructor I\'ll get a version of the stru

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