12345678910111213141516171819202122232425
#include<iostream> #include<string> #include<vector> using namespace std; struct myStructure { float number; vector<string> nameList(); }; int main(){ myStructure data; data.float=3.1415; data.nameList.push_back('goatgoat'); //I'm pretty sure this is correct clearStructureData(data); } void clearStructureData(data){ //I want this funct to wipe 'data' clean data.float=0; data.nameList.clear(); //<-- ERROR: insufficient contextual info to determine type }