Constucting a struct variable in c++

I want to keep my function generic. Thanks for trying though :slight_smile: