Hi,
I'm trying to use stringstreams in a tuple like
fstream fin(filename.c_str(), ios_base::in);
tuple test;
fin>>test;
I also just tried declaring a variable of type:
tuple<stringstream> test;
However, both, in MS VC++ 7.0 give me the following error:
c:\.....\include\boost-1_32\boost\tuple\detail\tuple_basic_no_partial_spec.hpp(190):
error C2558: class 'std::basic_stringstream<_Elem,_Traits,_Alloc>' : no
copy constructor available or copy constructor is declared 'explicit'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
I'm basically looking for a solution of being able to stream tuples with
strings in the them in and out of a file.
Any suggestions will be appreciated.
Thanks !