Void method which returns a value in stringstream.h confuses g++ 3.3

Bug #178048 reported by John Faith
6
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

The str(std::string &s) method in src/svg/stringstream.h is declared as 'void', but uses 'return.' This apparently confuses g++ 3.3 (Mac OS X 10.3.9) and results in the compiler error:

/usr/include/gcc/darwin/3.3/c++/sstream:189: error: `app' is not a member of type `std::ios_base'

Removing the "return" from the method allows compilation to proceed.

Tags: osx
Revision history for this message
John Faith (jfaith7) wrote :
Revision history for this message
vonHalenbach (lustik) wrote :

Thank you for your patch!

Changed in inkscape:
importance: Undecided → Low
milestone: none → 0.46
status: New → Triaged
Revision history for this message
theAdib (theadib) wrote :

patch commited to revision 16777. Tested on ubuntu7.10. Thx, Adib.

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.