stringstream sstr = stringstream(stringstream::in);
or like this
stringstream sstr(stringstream::in);
anyone got any suggestions also happesn with ofstream
Code: Select all
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h: In copy constructor 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h:783: error: 'std::ios_base::ios_base(const std::ios_base&)' is private
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:52: error: within this context
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd: In copy constructor 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:80: note: synthesized method 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)' first required here
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf: In copy constructor 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf:775: error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits = std::char_traits<char>]' is private
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:68: error: within this context
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd: In copy constructor 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:80: note: synthesized method 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)' first required here
main.cpp: In function 'int main(int, char**)':
main.cpp:20: note: synthesized method 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)' first required here
make: *** [main.o] Error 1