ModularM
Modular3y ago
2 replies
taalhaataahir01022001

Dynamic Vector of objects

I'm trying to create a dynamic vector of struct objects but facing this error:
error: 'DynamicVector' parameter #0 has 'CollectionElement' type, but value has type 'MyPair'
var vector = DynamicVector[MyPair] ()
I've also tried creating a copy and move constructor but still facing the same problem
Here is my code:
image.png
Was this page helpful?