Boost logo

Boost Users :

From: CodeLogic (codelogic_at_[hidden])
Date: 2005-04-08 14:25:48


Hi,

I'm trying to use stringstreams in a tuple like

fstream fin(filename.c_str(), ios_base::in);
tuple<stringstream, stringstream, stringstream, stringstream> 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 !


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net