i've downloaded a code which implements a BoW (Bag of Words) and i get an error in this line:
float label=atof(entryPath.filename().c_str());
It says: argument of type "const boost::filesystem::path::value_type *" is incompatible with parameter of type "const char *"
I've been searching a little bit and I've seen that there's a problem with the conversion between this kind of string to a char but i couldn't find anything related to a float conversion.
I've also seen the diference between string
and c_str
and I suppose that the error is in the atof
since I think that only can convert the string
and not the c_str
. Is this the possible error?
In addition I'm new in the boost library and I don't know hot to manage this situation.
Thank you very much and sorry for my english