How do I construct a struct in a union?

后端 未结 0 1032
逝去的感伤
逝去的感伤 2021-01-14 05:45

t2 below causes the following compile error

test.cpp:14:15: error: cannot initialize a member subobject of type \'E\' with an rvalue of type \'int\'
        T         


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