Hi ! I have a strange problem with a std::ostringstream..
code :
#include <sstream>
/*...*/
std::ostringstream ss();
ss << "\"\"" << libpath << "\"\" \"\"" << argfilename << "\"\" \"\""
<< outfilename << "\"\""; //line 75
std::string callstring = ss.str(); //line 77
/* ... */
I don't have a undeclared identifier error when declaring std::ostringstream
ss();
however, I have thoses stranges errors :
c:\documents and settings\eric\mes documents\programming\stdcpp dynamic
code\loadlib.hpp(75) : error C2296: '<<' : illegal, left operand has type
'class std::basic_ostringstream<char,struct std::char_traits<char>,class
std::allocator<char> > (__cdec
l *)(void)'
c:\documents and settings\eric\mes documents\programming\stdcpp dynamic
code\loadlib.hpp(75) : error C2297: '<<' : illegal, right operand has type
'char [3]'
c:\documents and settings\eric\mes documents\programming\stdcpp dynamic
code\loadlib.hpp(77) : error C2228: left of '.str' must have
class/struct/union type
I use vc++ 6.0
that's a very strange error and I really do not have a clue how to solve
it.. I mean.. ss is not a undeclared identifier.. and it's really defined
as a std::ostringstream.. but I have thoses errors...
any help appreciated.. really !!
thanks !
-Eric Boutin