On 8 July 2010 12:30, Konstantin Tokarev <annu...@yandex.ru> wrote: > > > 08.07.10, 15:01, "Chris Morley" <c.mor...@gaseq.co.uk>: > >> On 08/07/2010 09:53, Konstantin Tokarev wrote: >> > >> > >> > 08.07.10, 12:44, "Noel O'Boyle": >> > >> >> Hi Chris, >> >> >> >> According to the dashboard, >> >> >> >> src/ops/sort.cpp:143: error: no matching function for call to >> >> OpenBabel::OBDescriptor::GetIdentifier(std::stringstream) >> >> >> >> Where there is is GetIdentifier(std::istream& optionText); >> >> >> >> Is this some inheritance problem with g++? Can a superclass not accept >> >> a reference to a subclass? Should the stringstream be casted to an >> >> istream? Should GetIdentifier be changed to stringstream also? >> > >> > stringstream is not istream. Use istringstream >> > >> Now corrected r3844. The original compiled ok with MSVC. Properly >> understanding how the stream class are constructed (inheritance, >> typedefs, etc.) is a big job. It is easier to rely on the compiler to >> tell you when you have got it wrong. > > http://www.cplusplus.com/reference/iostream/istringstream/ > http://www.cplusplus.com/reference/iostream/istream/ > http://www.cplusplus.com/reference/iostream/iostream/
Yes - I checked that too. But according to http://www.cplusplus.com/reference/iostream/stringstream/, stringstream is a subclass of istream also. > -- > Regards, > Konstantin > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > OpenBabel-Devel mailing list > OpenBabel-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-devel > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel