I would like to initialize an array of structs:
struct person {
string firstName;
string lastName;
}
person[3] family = [
person("Will", "Smith"),
person("Jada", "Smith"),
person("Brad", "Pitt")
]
I get a compile error:
"UnimplementedFeatureError: Copying of type struct [...] memory to storage not yet supported.
I just want to initialize an array of Structs. I'd rather not push new instances of "person" one by one in a constructor. Any ideas on what I should do?