Boost logo

Boost Users :

From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2007-02-21 16:44:39


I've modified my code and did something like this.

std::stringstream ss ;
boost::archive::binary_oarchive oa (ss) ;
os << class_obj ;

so i'm sending data to db api as
(void *)ss.

To retrieve data, I'm using something like this

data=db.get_data() ;
istringstream is (ios_base::binary) ;
is << (char *)data.get_data() ;
boost::archive::binary_iarchive (is) ;

This time I'm getting stream_error exception.

what I'm not able to figure out was how can i create a stringstream
object from void * pointer.

Thanks,
Surya


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