I have this method declaration in Util.h file
30:string to_string(const bit_vector& v);
Util.cc file has the definition
string to_string(const bit_vector& v){
string str = "";
for (bit_vector::const_iterator i = v.begin(); i < v.end(); ++i){
if(*i == 1) str += "1";
else str += "0";
}
return str;
}
when I try to build the project it says that in line 30
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2143: syntax error : missing ',' before '&'
Im using visual studio 2008, Can some one help me to get out of these two errors! Dont know whether there is a problem with bit_vector !!! any ideas???