- You can see the answer to this question https://ask.csdn.net/questions/7599930
I should how this change
A non-aggregate type is a class or structure that does not conform to the aggregate type definition. It contains functions, virtual functions, static members, and so on. Objects of this type cannot be initialized directly with an initializer list.
You can use the constructor or assignment operator