Hi there.
I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error.
error:C2075: 'Target of operator new()' : array initialization needs curly braces.
struct DISPLAY_DEVICE_CAPABILITIES{
vector<int[3]> resolutions;
int brightness;
};
vector<DISPLAY_DEVICE_CAPABILITIES> displays;
DISPLAY_DEVICE_CAPABILITIES newDisplay;
displays.insert(displays.begin(), newDisplay);
I have tried using push_back instead to no avail; the error remains the same. Does anyone have any ideas of how to alleviate this problem? Sadly it's not an easily googleable issue...vector of structs containing a vector, heh.
Any help would be greatly appreciated... thanks for your time :)
edit:argh, typo in the thread title...how annoying :(