Witam
Piszę program w C++ z wykorzystaniem Visual Studio 2012 którym po dodaniu struktury :
struct RGB
{
unsigned char mRed;
unsigned char mGreen;
unsigned char mBlue;
RGB(unsigned char red, unsigned char green, unsigned char blue) : mRed(red), mGreen(green), mBlue(blue) {}
};
typedef vector<RGB> ImageRow;
kompilator zgłasza błąd:
error C2059: syntax error : '<L_TYPE_raw>'
error C2059: syntax error : ')
error C2334: unexpected token(s) preceding ':'; skipping apparent function body
Wydaje mis się, że problem leży w liście inicjalizacji. Nie wiem jak ten problem rozwiązać. Może ktoś ma jakiś pomysł?