On 08/07/2010 09:53, Konstantin Tokarev wrote:
>
>
> 08.07.10, 12:44, "Noel O'Boyle"<baoille...@gmail.com>:
>
>> 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.


------------------------------------------------------------------------------
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

Reply via email to