Boost logo

Boost Users :

Subject: [Boost-users] simple serialization of boost::variant
From: Archie14 (admin_at_[hidden])
Date: 2010-05-27 17:31:59


I use std::istream and std::ostream for binary serialization ( can't use
boost::serialization) and can't find a way to serialize boost::variant<int,
double, std::string>. I'll appreciate a code sample or link to the
documentation. 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