I'm trying to parse the data (of different types: double, char, int) from a string to a 1D vector. The string looks like this:
A: 12345 g 0.1234 0.5678
And I want my vector to look like this:
12345 g 0.5678
I chose the first method. However, this is the error I get:
no matching function for call to 'std::vector<cdata>::push_back(ChallengeData::read_from_file(std::string)::cdata&)'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/stl_vector.h:741:7: note: candidate is: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = cdata, _Alloc = std::allocator<cdata>, value_type = cdata]
What does this error mean? I'm using Eclipse and the error is at the data.push_back(tmp) line.